update gitignore, format eslint config

This commit is contained in:
alu
2026-07-31 23:30:32 +00:00
parent ff63d8dc15
commit 91be26e320
2 changed files with 27 additions and 26 deletions
-2
View File
@@ -1,5 +1,3 @@
**/config.json **/config.json
**/package-lock.json
**/node_modules
dist/* dist/*
go.sum go.sum
+27 -24
View File
@@ -2,28 +2,31 @@ import { defineConfig } from "eslint/config";
import globals from "globals"; import globals from "globals";
import js from "@eslint/js"; import js from "@eslint/js";
export default defineConfig([js.configs.recommended,{ export default defineConfig([
languageOptions: { js.configs.recommended,
globals: { {
...globals.browser, languageOptions: {
globals: {
...globals.browser,
},
ecmaVersion: "latest",
sourceType: "module",
}, },
ecmaVersion: "latest", rules: {
sourceType: "module", "no-tabs": ["error", {
}, allowIndentationTabs: true,
rules: { }],
"no-tabs": ["error", { indent: ["error", "tab"],
allowIndentationTabs: true, "linebreak-style": ["error", "unix"],
}], quotes: ["error", "double"],
indent: ["error", "tab"], semi: ["error", "always"],
"linebreak-style": ["error", "unix"], "brace-style": ["error", "stroustrup", { allowSingleLine: false }],
quotes: ["error", "double"], "no-unused-vars": ["warn", {
semi: ["error", "always"], "argsIgnorePattern": "^_",
"brace-style": ["error", "stroustrup", { allowSingleLine: false }], "varsIgnorePattern": "^_",
"no-unused-vars": ["warn", { "caughtErrorsIgnorePattern": "^_"
"argsIgnorePattern": "^_", }],
"varsIgnorePattern": "^_", "prefer-const": ["error"]
"caughtErrorsIgnorePattern": "^_" },
}], }
"prefer-const": ["error"] ]);
},
}]);