mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Fixing eslint
This commit is contained in:
11
.eslintrc.js
11
.eslintrc.js
@@ -16,16 +16,17 @@ module.exports = {
|
|||||||
plugins: ["@typescript-eslint"],
|
plugins: ["@typescript-eslint"],
|
||||||
rules: {
|
rules: {
|
||||||
// TODO: Remove warn rules when not needed anymore
|
// TODO: Remove warn rules when not needed anymore
|
||||||
"no-self-assign": "off",
|
|
||||||
"semi": "warn",
|
|
||||||
"@typescript-eslint/no-empty-interface": "off",
|
"@typescript-eslint/no-empty-interface": "off",
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
"indent": ["warn", 4, { "SwitchCase": 1 }],
|
||||||
|
"newline-before-return": "error",
|
||||||
|
"no-multiple-empty-lines": ["error", { max: 2, maxEOF: 0 }],
|
||||||
|
"no-self-assign": "off",
|
||||||
"no-trailing-spaces": "warn",
|
"no-trailing-spaces": "warn",
|
||||||
|
"object-curly-spacing": ["warn", "always"],
|
||||||
"prefer-template": "warn",
|
"prefer-template": "warn",
|
||||||
"quotes": ["warn", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
|
"quotes": ["warn", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
|
||||||
"no-multiple-empty-lines": ["error", { max: 2, maxEOF: 0 }],
|
|
||||||
"indent": ["warn", 4, { "SwitchCase": 1 }],
|
|
||||||
"object-curly-spacing": ["warn", "always"],
|
|
||||||
"require-await": "warn",
|
"require-await": "warn",
|
||||||
|
"semi": "warn",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user