-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
43 lines (43 loc) · 999 Bytes
/
.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
---
extends:
- airbnb
- plugin:flowtype/recommended
# overwrite any rules that may conflict with prettier
- prettier
- prettier/flowtype
- prettier/react
- prettier/standard
parser: 'babel-eslint'
plugins:
- flowtype
- jest
- react-hooks
env:
jest/globals: true
browser: true
rules:
react-hooks/rules-of-hooks: 2
react-hooks/exhaustive-deps: 1
react/jsx-filename-extension: 0
react/jsx-props-no-spreading: 0
react/require-default-props: 0
no-duplicate-imports: 2 # doesn't support flow imports.
no-console: 0
func-style: 2
consistent-return: 2
jsx-a11y/label-has-associated-control: 0
react/prop-types: 0
prefer-arrow-callback:
- 2
- allowNamedFunctions: false
allowUnboundThis: false
flowtype/no-primitive-constructor-types: 2
flowtype/require-valid-file-annotation:
- 2
- 'always'
- annotationStyle: 'line'
no-unused-vars:
- 2
- ignoreRestSiblings: true
jest/no-disabled-tests: 2
jest/no-focused-tests: 2