-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
188 lines (183 loc) · 4.61 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"tslint-config-prettier"
],
"globals": {
"process": false
},
"rules": {
"indent": [1, "tab", { "SwitchCase": 1 }],
"camelcase": 1,
"accessor-pairs": 1,
"array-bracket-spacing": 1,
"array-callback-return": 1,
"arrow-body-style": 1,
"arrow-parens": [1, "as-needed"],
"arrow-spacing": 1,
"block-scoped-var": 1,
"block-spacing": 1,
"brace-style": 1,
"comma-dangle": [1, "always-multiline"],
"comma-spacing": 1,
"comma-style": 1,
"computed-property-spacing": 1,
"consistent-return": 1,
"consistent-this": [1, "that"],
"curly": [1, "multi-or-nest", "consistent"],
"default-case": 1,
"dot-notation": [1, { "allowPattern": "^[a-z]+(_[a-z]+)+$" }],
"eol-last": 1,
"generator-star-spacing": [1, { "before": false, "after": true }],
"global-require": 1,
"guard-for-in": 1,
"jsx-quotes": 1,
"key-spacing": 1,
"keyword-spacing": 1,
"linebreak-style": 1,
"lines-around-comment": 1,
"max-len": [1, 120, 2],
"new-parens": 1,
"newline-after-var": 1,
"newline-before-return": 1,
"newline-per-chained-call": 1,
"no-alert": 1,
"no-array-constructor": 1,
"no-await-in-loop": 1,
"no-bitwise": 1,
"no-caller": 1,
"no-catch-shadow": 1,
"no-div-regex": 1,
"no-duplicate-imports": 1,
"no-else-return": 1,
"no-empty-function": 1,
"no-eval": 1,
"no-extend-native": 1,
"no-extra-bind": 1,
"no-extra-label": 1,
"no-floating-decimal": 1,
"no-implicit-coercion": 1,
"no-implicit-globals": 1,
"no-implied-eval": 1,
"no-invalid-this": 1,
"no-iterator": 1,
"no-label-var": 1,
"no-lone-blocks": 1,
"no-lonely-if": 1,
"no-loop-func": 1,
"no-mixed-requires": 1,
"no-mixed-spaces-and-tabs": 1,
"no-multi-spaces": 1,
"no-multi-str": 1,
"no-multiple-empty-lines": [1, { "max": 1 }],
"no-native-reassign": 1,
"no-negated-condition": 1,
"no-nested-ternary": 1,
"no-new": 1,
"no-new-func": 1,
"no-new-object": 1,
"no-new-require": 1,
"no-new-wrappers": 1,
"no-octal-escape": 1,
"no-param-reassign": [1, { "props": true }],
"no-path-concat": 1,
"no-plusplus": [1, { "allowForLoopAfterthoughts": true }],
"no-return-assign": 1,
"no-self-compare": 1,
"no-sequences": 1,
"no-shadow-restricted-names": 1,
"no-spaced-func": 1,
"no-sync": 1,
"no-trailing-spaces": 1,
"no-undef-init": 1,
"no-undefined": 1,
"no-unmodified-loop-condition": 1,
"no-unneeded-ternary": 1,
"no-unsafe-finally": 1,
"no-unused-expressions": 1,
"no-use-before-define": [1, { "functions": false }],
"no-useless-call": 1,
"no-useless-computed-key": 1,
"no-useless-concat": 1,
"no-useless-constructor": 1,
"no-useless-escape": 1,
"no-var": 1,
"no-warning-comments": 1,
"no-whitespace-before-property": 1,
"no-with": 1,
"object-shorthand": 1,
"one-var": [1, "never"],
"operator-assignment": 1,
"operator-linebreak": [1, "none"],
"padded-blocks": [1, "never"],
"prefer-arrow-callback": 1,
"prefer-const": 1,
"prefer-rest-params": 1,
"prefer-spread": 1,
"prefer-template": 1,
"prettier/prettier": 0,
"quote-props": [1, "consistent-as-needed"],
"quotes": [1, "single"],
"radix": 1,
"require-yield": 1,
"semi": [1, "always"],
"sort-imports": [
1,
{ "memberSyntaxSortOrder": ["none", "single", "all", "multiple"] }
],
"space-before-blocks": 1,
"space-before-function-paren": [
1,
{ "anonymous": "always", "named": "never" }
],
"space-in-parens": 1,
"space-infix-ops": 1,
"space-unary-ops": 1,
"spaced-comment": 1,
"template-curly-spacing": 1,
"vars-on-top": 1,
"wrap-iife": 1,
"wrap-regex": 1,
"yield-star-spacing": 1,
"yoda": 1
},
"plugins": [
"react",
"@typescript-eslint/eslint-plugin",
"prettier",
"import"
],
"env": {
"browser": true,
"jasmine": true,
"jest": true
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true
}
]
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
},
"import/resolver": { "babel-module": {} }
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
}
}