SponsorBlockServer/.eslintrc.js

32 lines
986 B
JavaScript
Raw Normal View History

2021-07-04 07:34:31 +02:00
module.exports = {
2021-07-12 08:12:22 +02:00
env: {
browser: false,
es2021: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {
// TODO: Remove warn rules when not needed anymore
"no-self-assign": "off",
"semi": "warn",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-trailing-spaces": "warn",
"prefer-template": "warn",
"quotes": ["warn", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
"no-multiple-empty-lines": ["error", { max: 2, maxEOF: 0 }],
2021-08-02 22:25:04 +02:00
"indent": ["warn", 4, { "SwitchCase": 1 }],
2021-09-23 00:52:35 +02:00
"object-curly-spacing": ["warn", "always"],
2021-09-23 05:34:46 +02:00
"require-await": "warn",
2021-07-12 08:12:22 +02:00
},
};