-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
47 lines (47 loc) · 1.53 KB
/
.eslintrc
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
{
"extends": [
"prettier",
"prettier/react",
"prettier/standard",
"eslint:recommended",
"plugin:react/recommended",
"plugin:jest/recommended"
],
"plugins": ["react", "jsx-a11y", "import", "prettier", "react-hooks", "jest"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"env": {
"browser": true,
"es6": true
},
"rules": {
"prettier/prettier": "error",
"react/prop-types": 1,
"react/forbid-prop-types": 0,
"react/display-name": 0,
"react/jsx-filename-extension": 0,
"react/jsx-boolean-value": 0,
"react/jsx-props-no-spreading": 0, // TEMP, We really should fix this, it's done in so many places so will need time to refactor
"import/first": 1,
"import/prefer-default-export": 1,
"import/no-named-as-default": 0,
"react/require-default-props": 0,
"react/no-typos": 1,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-nested-ternary": 0, // TEMP, We really should fix this, it's done in so many places so will need time to refactor
"no-useless-rename": 0, // TEMP, react-scripts using latest eslint which is buggy: https://github.com/eslint/eslint/issues/12335
"no-return-assign": 0,
"no-restricted-globals": 0,
"no-underscore-dangle": 0, // graphql __typename is valid case
"jsx-curly-brace-presence": 0, // TEMP, getting a property substring of undefined error when lint runs,
"react/jsx-key": "warn"
},
"settings": {
"react": {
"version": "detect"
}
}
}