-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.17 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
{
"env": {
"cypress/globals": true,
"browser": true,
"es6": true
},
"plugins": ["import", "react-hooks", "@typescript-eslint", "cypress"],
"extends": [
"standard",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:cypress/recommended",
"react-app",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json", "cypress/tsconfig.json"],
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"settings": {
"react": {
"pragma": "React",
"version": "16.13.1"
}
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"react/boolean-prop-naming": ["warn"],
"react/no-typos": ["error"],
"react/button-has-type": ["warn"],
"react/no-unused-prop-types": ["warn"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"arrow-body-style": ["warn", "as-needed"],
"no-shadow": ["error", { "allow": ["status"] }]
}
}