-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yml
49 lines (48 loc) · 1.14 KB
/
.eslintrc.yml
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
root: true
parser: babel-eslint
plugins:
- flowtype
- prettier
extends:
- airbnb
- plugin:flowtype/recommended
- prettier
- prettier/flowtype
- prettier/react
rules:
global-require: off
no-console: off
no-shadow: off
prefer-destructuring: off
import/prefer-default-export: off
jsx-a11y/anchor-is-valid: off
# https://github.com/yannickcr/eslint-plugin-react/issues/1593#issuecomment-395072926
react/default-props-match-prop-types:
- error
- allowRequiredDefaults: true
react/destructuring-assignment: off
react/jsx-props-no-spreading: off
react/no-array-index-key: warn
react/no-unescaped-entities: off
react/react-in-jsx-scope: off
react/require-default-props: off
react/sort-comp: off
react/state-in-constructor: off
react/jsx-filename-extension: off
prettier/prettier: error
overrides:
- files:
- "src/**/*.js"
rules:
flowtype/require-valid-file-annotation:
- error
- always
- files:
- "flow-typed/**/*.js"
rules:
flowtype/no-types-missing-file-annotation: off
- files:
- "**/*.test.js"
- "**/__tests__/**/*.js"
env:
jest: true