-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
50 lines (47 loc) · 1.34 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
{
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:jsx-a11y/recommended"
],
"parser": "babel-eslint",
"rules": {
// Variables
"no-unused-vars": ["error", {"varsIgnorePattern": "Fragment"}],
// eslint-plugin-flowtype
"flowtype/array-style-simple-type": ["error", "shorthand"],
"flowtype/newline-after-flow-annotation": ["error"],
"flowtype/require-indexer-name": ["error"],
"flowtype/require-readonly-react-props": ["error"],
// eslint-plugin-react
"react/button-has-type": ["error"],
"react/no-typos": ["error"],
"react/prop-types": ["off"],
// JSX-specific rules
"react/jsx-no-target-blank": ["off"]
},
"plugins": ["flowtype", "react", "jest", "jsx-a11y"],
"env": {
"node": true,
"es6": true,
"browser": true,
"jest/globals": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"pragma": "h",
"version": "16.12",
"flowVersion": "0.121.0"
}
}
}