-
Notifications
You must be signed in to change notification settings - Fork 33
/
.eslintrc.json
34 lines (34 loc) · 1.08 KB
/
.eslintrc.json
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-control-regex": 0,
"max-len": [ "warn", { "code": 120, "ignoreRegExpLiterals": true } ],
"curly": "error",
"quotes": [ "warn", "single", { "avoidEscape": true } ],
"semi": [ "error", "always" ],
"eqeqeq": [ "error", "always" ],
"no-trailing-spaces": "warn",
"indent": [ "warn", 4, { "SwitchCase": 1 } ],
"no-multi-spaces": [ "warn", { "ignoreEOLComments": true }],
"space-before-function-paren": [ "warn", { "anonymous": "never", "named": "never", "asyncArrow": "always" } ],
"space-in-parens": [ "warn", "never" ],
"semi-spacing": "warn",
"keyword-spacing": [ "warn" ],
"space-before-blocks": [ "warn" ],
"@typescript-eslint/no-unused-vars": [ "warn", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"@typescript-eslint/no-inferrable-types": [
2,
{
"ignoreParameters": true
}
]
}
}