6
6
node : true
7
7
plugins :
8
8
- flowtype
9
- - prettier
10
9
11
10
rules :
12
- # https://github.com/prettier/eslint-plugin-prettier#installation
13
- prettier/prettier : error
14
-
15
11
# `eslint-plugin-flowtype` rule list based on `v3.11.x`
16
12
# https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
17
13
35
31
flowtype/require-readonly-react-props : off
36
32
flowtype/require-return-type : off
37
33
flowtype/require-types-at-top : off
38
- flowtype/require-valid-file-annotation : [error, always, { annotationStyle: line, strict: true }]
34
+ flowtype/require-valid-file-annotation :
35
+ [error, always, { annotationStyle : line, strict: true }]
39
36
flowtype/require-variable-type : off
40
37
flowtype/sort-keys : off
41
38
flowtype/spread-exact-type : off
@@ -130,7 +127,7 @@ rules:
130
127
no-implied-eval : error
131
128
no-invalid-this : off
132
129
no-iterator : error
133
- no-labels : [error, {allowLoop: true}]
130
+ no-labels : [error, { allowLoop: true }]
134
131
no-lone-blocks : error
135
132
no-loop-func : error
136
133
no-magic-numbers : off
@@ -168,7 +165,7 @@ rules:
168
165
require-await : off # TODO
169
166
require-unicode-regexp : off
170
167
vars-on-top : error
171
- yoda : [error, never, {exceptRange: true}]
168
+ yoda : [error, never, { exceptRange: true }]
172
169
173
170
# Strict Mode
174
171
# https://eslint.org/docs/rules/#strict-mode
@@ -187,7 +184,8 @@ rules:
187
184
no-undef : error
188
185
no-undef-init : error
189
186
no-undefined : off
190
- no-unused-vars : [error, {vars: all, args: after-used, argsIgnorePattern: "^_"}]
187
+ no-unused-vars :
188
+ [error, { vars : all, args: after-used, argsIgnorePattern: '^_' }]
191
189
no-use-before-define : off
192
190
193
191
# Node.js and CommonJS
@@ -208,15 +206,15 @@ rules:
208
206
# Stylistic Issues
209
207
# https://eslint.org/docs/rules/#stylistic-issues
210
208
211
- camelcase : [error, {properties: always}]
209
+ camelcase : [error, { properties: always }]
212
210
capitalized-comments : off # maybe
213
211
consistent-this : off
214
212
func-name-matching : off
215
213
func-names : off
216
214
func-style : off
217
215
id-blacklist : off
218
216
id-length : off
219
- id-match : [error, " ^(?:_?[a-zA-Z0-9]*)|[_A-Z0-9]+$" ]
217
+ id-match : [error, ' ^(?:_?[a-zA-Z0-9]*)|[_A-Z0-9]+$' ]
220
218
line-comment-position : off
221
219
lines-around-comment : off
222
220
lines-between-class-members : [error, always, { exceptAfterSingleLine: true }]
@@ -353,10 +351,10 @@ rules:
353
351
yield-star-spacing : off
354
352
355
353
overrides :
356
- - files : " **/__tests__/**"
354
+ - files : ' **/__tests__/**'
357
355
rules :
358
356
no-restricted-syntax : off
359
- - files : " resources/**"
357
+ - files : ' resources/**'
360
358
parserOptions :
361
359
sourceType : script
362
360
rules :
0 commit comments