forked from godaddy-wordpress/kodiak-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
68 lines (67 loc) · 1.64 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"plugins": ["react-hooks", "no-only-tests", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"env": { "es6": true },
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"ecmaVersion": 10
},
"sourceType": "module"
},
"rules": {
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "warn",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-only-tests/no-only-tests": "error",
"no-debugger": "error",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/no-var-requires": 0,
"react/no-children-prop": 0,
"react/display-name": 0,
"react/prop-types": 0,
"react/no-unescaped-entities": [
"error",
{
"forbid": [
{
"char": ">",
"alternatives": [">"]
},
{
"char": "\"",
"alternatives": [""", "“", """, "”"]
},
{
"char": "}",
"alternatives": ["}"]
}
]
}
]
},
"overrides": [
{
"files": ["*.stories.ts?"],
"rules": {
"no-console": "off"
}
}
],
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}