-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
43 lines (43 loc) · 1.19 KB
/
.eslintrc
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
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-var-requires": "off",
"no-import-assign": "warn",
"prefer-regex-literals": "error",
"multiline-ternary": "off",
"camelcase": "off",
"arrow-parens": "off",
"space-before-function-paren": ["error", "never"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-trailing-spaces": "error",
"semi": ["error", "always"],
"eqeqeq": "off",
"indent": ["error", 2],
"no-constant-condition": ["error", { "checkLoops": false }],
"prefer-const": "off",
"one-var": "off",
"no-useless-return": "off",
"arrow-spacing":"error",
"keyword-spacing": ["error", { "overrides": {
"if": { "after": false },
"for": { "after": false },
"while": { "after": false }
}}]
}
}