-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
64 lines (64 loc) · 1.75 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"extends": ["airbnb", "prettier"],
"plugins": [
"testing-library",
"jest-dom",
"jsx-a11y",
"simple-import-sort",
"prettier",
"react-hooks"
],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"rules": {
"no-unused-vars": "off",
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
"react/prop-types": ["off"],
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".jsx"] }],
"import/extensions": ["error", "never"],
"import/prefer-default-export": 0,
"import/no-anonymous-default-export": 0,
"import/no-unresolved": 2,
"sort-imports": "off",
"import/order": "off",
"no-shadow": "off",
"no-use-before-define": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/no-array-index-key": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-curly-newline": "off",
"react/jsx-props-no-spreading": "off",
"react/function-component-definition": "off",
"quotes": "off",
"object-curly-spacing": 1,
"array-bracket-spacing": 1,
"prettier/prettier": [
"warn",
{
"printWidth": 80,
"singleQuote": false,
"endOfLine": "auto"
}
],
"simple-import-sort/exports": "error",
"simple-import-sort/imports": [
"warn",
{
"groups": [["^\\u0000"], ["^@?\\w"], ["^"], ["^\\."]]
}
]
},
"overrides": [
// Only use Testing Library lint rules in jest test files
{
"files": ["__tests__/**/?(*.)+(spec|test).[jt]s?(x)"],
"extends": ["plugin:testing-library/react"]
}
]
}