-
Notifications
You must be signed in to change notification settings - Fork 326
/
.eslintrc
91 lines (90 loc) · 2.92 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jquery": true
},
"rules": {
"prefer-const": "warn",
"no-var": "warn",
"quotes": ["warn", "single"],
"eqeqeq": 0,
"no-const-assign": "error",
"no-new-object": "warn",
"object-shorthand": "warn",
"no-prototype-builtins": "warn",
"no-array-constructor": "warn",
"prefer-template": "warn",
"no-useless-escape": "warn",
"wrap-iife": ["warn", "inside"],
"no-loop-func": "warn",
"no-new-func": "warn",
"prefer-rest-params": "warn",
"space-before-function-paren": [
"warn",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"prefer-arrow-callback": "warn",
"template-curly-spacing": "warn",
"no-param-reassign": ["warn", { "props": false }],
"prefer-spread": "warn",
"arrow-spacing": "warn",
"arrow-body-style": ["warn", "as-needed"],
"no-confusing-arrow": ["warn", { "allowParens": true }],
"no-useless-constructor": "warn",
"no-dupe-class-members": "warn",
"no-duplicate-imports": "warn",
"dot-notation": "warn",
"no-undef": ["warn", { "typeof": true }],
"one-var": ["warn", "never"],
"no-multi-assign": "warn",
"no-case-declarations": "warn",
"no-nested-ternary": "warn",
"no-unneeded-ternary": "warn",
"brace-style": "warn",
"space-before-blocks": [
"warn",
{ "functions": "always", "keywords": "always", "classes": "always" }
],
"space-infix-ops": "warn",
"eol-last": ["warn", "always"],
"no-whitespace-before-property": "warn",
"padded-blocks": ["warn", "never"],
"space-in-parens": ["warn", "never"],
"array-bracket-spacing": ["warn", "never"],
"object-curly-spacing": ["warn", "always"],
"max-len": ["warn", { "code": 120 }],
"comma-style": ["warn", "last"],
"comma-dangle": ["warn", "always-multiline"],
"semi": ["warn"],
"radix": "warn",
"camelcase": ["warn", { "properties": "never" }],
"new-cap": ["warn", { "capIsNewExceptionPattern": "^Entry." }],
"curly": "warn",
"keyword-spacing": "warn",
"indent": ["warn", 4, { "SwitchCase": 1 }]
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"rules": {
}
}
]
}