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
|
|
|
|
"@typescript-eslint/no-empty-interface": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
2021-10-22 07:48:35 +02:00
|
|
|
"indent": ["warn", 4, { "SwitchCase": 1 }],
|
|
|
|
"no-multiple-empty-lines": ["error", { max: 2, maxEOF: 0 }],
|
|
|
|
"no-self-assign": "off",
|
2021-07-12 08:12:22 +02:00
|
|
|
"no-trailing-spaces": "warn",
|
2021-10-22 07:48:35 +02:00
|
|
|
"object-curly-spacing": ["warn", "always"],
|
2021-07-12 08:12:22 +02:00
|
|
|
"prefer-template": "warn",
|
|
|
|
"quotes": ["warn", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
|
2021-09-23 05:34:46 +02:00
|
|
|
"require-await": "warn",
|
2021-10-22 07:48:35 +02:00
|
|
|
"semi": "warn",
|
2021-11-15 05:09:12 +01:00
|
|
|
"no-console": "warn"
|
2021-07-12 08:12:22 +02:00
|
|
|
},
|
|
|
|
};
|