-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
30 lines (30 loc) · 1.18 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module.exports = {
env: { node: true, browser: true },
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
"no-shadow": "off",
"semi": ["error", "always"],
"quotes": ["error", "single"],
"indent": ["error", 2],
"comma-style": ["error", "last"],
"comma-spacing": ["error"],
"comma-dangle": ["error", "never"],
"no-multi-spaces": ["error", {}],
"function-paren-newline": ["error", "consistent"],
"function-call-argument-newline": ["error", "consistent"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/no-empty-interface": "off",
'@typescript-eslint/no-explicit-any': 'warn',
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-shadow": "warn",
"@typescript-eslint/no-unused-vars": "off",
"sort-imports": ["error", { "allowSeparatedGroups": false, "ignoreDeclarationSort": true }],
"no-empty-interface": "off",
"no-unused-vars": "off",
"eol-last": ["error", "always"],
},
root: true,
};