-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
52 lines (52 loc) · 1.44 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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"plugins": ["react"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2015
},
"rules": {
"no-warning-comments": [
/*
* Use comments that contain certain strings to note changes and todos that need to be fixed before releasing.
* https://www.executeprogram.com/blog/the-code-is-the-to-do-list
*/
"error",
{ "terms": ["todo", "xxx"], "location": "anywhere" }
],
"react/prop-types": "off",
"react/display-name": "off",
"@typescript-eslint/no-explicit-any": "off"
},
"settings": { "react": { "version": "detect" } },
"overrides": [
{
"files": ["*.{ts,tsx}"],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
},
{
"files": ["./*.js", "*.cjs", "bin/**/*.js", "__mocks__/**/*.js"],
"parserOptions": {
// Needed to parse dangling commas: https://stackoverflow.com/questions/54299264/eslint-parse-error-on-comma-dangle-in-functions
"ecmaVersion": 8
},
"env": {
"node": true,
"es6": true
}
}
]
}