-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
53 lines (53 loc) · 1.31 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
48
49
50
51
52
53
{
"extends": ["plugin:@typescript-eslint/recommended", "plugin:cypress/recommended", "prettier"],
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"],
"rules": {
"react/no-did-mount-set-state": "warn",
"react/no-did-update-set-state": "warn",
"consistent-return": "warn",
"complexity": "warn",
"jest/no-disabled-tests": "off",
"react/no-access-state-in-setstate": "warn",
"no-prototype-builtins": "warn",
"jsx-a11y/no-autofocus": 0,
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-use-before-define": "off",
"camelcase": "off"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"project": "./"
},
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "src/"]
}
},
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["**/*.tsx", "**/*.ts"],
"rules": {
"react/prop-types": "off",
"no-undef": "off",
"react/display-name": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
]
}