-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
66 lines (66 loc) · 2.42 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
62
63
64
65
66
{
"parser": "typescript-eslint-parser",
"env": {
"browser": true,
"es6": true,
"node": true
},
"plugins": [],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"rules": {
"array-bracket-spacing": [ 2, "always" ],
"arrow-parens": [ 2, "always" ],
"arrow-spacing": [ 2, { "before": true, "after": true } ],
"brace-style": [ 2, "1tbs" ],
"comma-spacing": [ 2, { "before": false, "after": true } ],
"comma-style": [ 2, "last" ],
"complexity": [ 1, 8 ],
"computed-property-spacing": [ 2, "always" ],
"dot-notation": [ 2 ],
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
"max-len": [ 2, { "code": 100, "comments": 100, "tabWidth": 2, "ignoreTrailingComments": true, "ignoreUrls": true, "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true, "ignoreStrings": true } ],
"max-lines": [ 2, { "max": 250, "skipBlankLines": true, "skipComments": true } ],
"max-statements": [ 2, 30 ],
"no-confusing-arrow": [ 2, { "allowParens": false } ],
"no-const-assign": [ 2 ],
"no-dupe-class-members": [ 2 ],
"no-duplicate-imports": [ 2 ],
"no-multiple-empty-lines": [ 2, { "max": 1, "maxEOF": 0, "maxBOF": 0 } ],
"no-new-object": [ 2 ],
"no-undef": [ 2 ],
"no-unused-vars": [ 1, { "vars": "all", "args": "after-used", "ignoreRestSiblings": false } ],
"no-use-before-define": [ 2, { "functions": false } ],
"no-useless-constructor": [ 2 ],
"no-var": [ 2 ],
"object-curly-spacing": [ 2, "always" ],
"one-var": [ 2, "never" ],
"operator-linebreak": [ 2, "after", { "overrides": { "+": "before" } } ],
"prefer-arrow-callback": [ 2 ],
"prefer-const": [ 1 ],
"quotes": [ 2, "double" ],
"semi": [ 2, "always" ],
"space-before-blocks": [ 2, "always" ],
"space-in-parens": [ 2, "always", { "exceptions": [ "{}" ] } ],
"space-infix-ops": [ 2 ],
"template-curly-spacing": [ 2, "always" ]
},
"overrides": [
{
"files": [
"**/*.ts",
"**/*.tsx"
],
"rules": {
"no-unused-vars": [ "off" ],
"no-undef": [ "off" ]
}
}
]
}