-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
44 lines (44 loc) · 1.07 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
{
"env": {
"browser": true,
"node": true,
"es2021": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier",
"plugin:testing-library/dom",
"plugin:testing-library/react",
"plugin:jest-dom/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "prettier", "jest", "testing-library", "jest-dom"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
// Disable prop-types as we use TypeScript for type checking
"react/prop-types": "off",
"prettier/prettier": "error",
// needed for NextJS's jsx without react import
"react/react-in-jsx-scope": "off",
"react/no-unescaped-entities": 0,
// jest rules
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
},
"globals": { "React": "writable" }
}