-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
39 lines (38 loc) · 1.03 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
{
"env": {
"browser": true,
"es2021": true,
"jest/globals": true
},
"extends": ["plugin:react/recommended", "standard", "plugin:react-hooks/recommended", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "jest", "prettier"],
"settings": {
"react": {
"version": "detect" // Automatically detect the react version
},
"jest": {
"version": "detect",
"globalAliases": {
"describe": ["context"],
"fdescribe": ["fcontext"],
"xdescribe": ["xcontext"]
}
}
},
"rules": {
"prettier/prettier": ["error", {}, { "usePrettierrc": true }],
"semi": [2, "always"],
"space-before-function-paren": [0, { "anonymous": "always", "named": "always" }],
"camelcase": 0,
"no-return-assign": 0,
"react/react-in-jsx-scope": 0,
"react/display-name": 0
}
}