-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
61 lines (61 loc) · 1.77 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"overrides": [
{
"files": [
"src/**/*.ts",
"tests/**/*.ts",
"demos/**/*.ts"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"curly": ["error", "multi-line", "consistent"],
"@typescript-eslint/semi": ["error", "always"],
"dot-notation": "error",
"eqeqeq": "error",
"no-multi-spaces": "error",
"object-curly-spacing": ["error", "never"],
"yoda": "error",
"block-spacing": "error",
"brace-style": ["error", "1tbs"],
"eol-last": "error",
"@typescript-eslint/func-call-spacing": "error",
"function-call-argument-newline": ["error", "consistent"],
"@typescript-eslint/indent": ["error", 4, {
"FunctionDeclaration": {
"parameters": "first"
},
"FunctionExpression": {
"parameters": "first"
}
}],
"new-parens": "error",
"no-multiple-empty-lines": ["error", {
"max": 2,
"maxEOF": 0,
"maxBOF": 0
}],
"no-trailing-spaces": "error",
"prefer-exponentiation-operator": "error",
"space-infix-ops": "error",
"space-unary-ops": ["error", {
"words": true,
"nonwords": false
}],
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}