Skip to content

Commit

Permalink
Fix Format Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
4yman-0 committed Dec 21, 2024
1 parent 4ba6996 commit ad53b3b
Showing 1 changed file with 33 additions and 31 deletions.
64 changes: 33 additions & 31 deletions config/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,37 @@ const customGlobals = {
chrome: "readonly",
}

export default [ js.configs.recommended,
{
languageOptions: { globals: {
...customGlobals,
...globals.browser,
}},
ignores: ["../node_modules", "."],
rules: {
indent: ["error", "tab", {"SwitchCase": 1}],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-unused-vars": ["error", { "caughtErrors": "none" }],
"no-undef": "off",
"no-trailing-spaces": "warn",
"no-multi-spaces": "warn",
"semi-spacing": "warn",
"comma-spacing": "warn",
"no-fallthrough": ["error", { "allowEmptyCase": true }],
"no-implicit-globals": "error",
"no-multiple-empty-lines": ["warn", {"max": 2, "maxBOF": 0, "maxEOF": 0}],
"keyword-spacing": ["warn", { "before": true, "after": true }],
"space-before-function-paren": "warn",
"space-before-blocks": "warn",
"max-len": ["error", {
code: 255,
ignoreUrls: true,
ignoreStrings: true,
ignoreComments: true,
ignoreRegExpLiterals: true
}]
export default [
js.configs.recommended,
{
languageOptions: { globals: {
...customGlobals,
...globals.browser,
}},
ignores: ["../node_modules", "."],
rules: {
indent: ["error", "tab", {"SwitchCase": 1}],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-unused-vars": ["error", { "caughtErrors": "none" }],
"no-undef": "off",
"no-trailing-spaces": "warn",
"no-multi-spaces": "warn",
"semi-spacing": "warn",
"comma-spacing": "warn",
"no-fallthrough": ["error", { "allowEmptyCase": true }],
"no-implicit-globals": "error",
"no-multiple-empty-lines": ["warn", {"max": 2, "maxBOF": 0, "maxEOF": 0}],
"keyword-spacing": ["warn", { "before": true, "after": true }],
"space-before-function-paren": "warn",
"space-before-blocks": "warn",
"max-len": ["error", {
code: 255,
ignoreUrls: true,
ignoreStrings: true,
ignoreComments: true,
ignoreRegExpLiterals: true
}],
},
},
}];
];

0 comments on commit ad53b3b

Please sign in to comment.