-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.base.json
50 lines (46 loc) · 1.47 KB
/
.eslintrc.base.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
{
"extends": ["plugin:storybook/recommended"],
"plugins": ["@typescript-eslint", "jsx-a11y", "react-hooks", "react"],
"rules": {
"max-len": [
"warn",
{
"code": 80,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreTrailingComments": true,
"ignoreUrls": true
}
],
"new-cap": ["warn", { "properties": false }],
"no-redeclare": "off",
"no-empty": ["error", { "allowEmptyCatch": true }],
"jsx-a11y/aria-role": ["warn", { "ignoreNonDOM": true }],
"react/jsx-filename-extension": [
"warn",
{ "extensions": [".jsx", ".tsx"] }
],
"react/no-unescaped-entities": "off",
"react/jsx-no-useless-fragment": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": { "regex": "^I[A-Z]", "match": false }
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-redeclare": "warn",
"@typescript-eslint/no-unused-vars": "off"
},
"settings": { "react": { "version": "detect" } }
}