-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.base.json
47 lines (45 loc) · 1.7 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
{
"plugins": ["@typescript-eslint", "jsx-a11y", "react-hooks", "react"],
"rules": {
"@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",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-interface": "off",
"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",
"react/jsx-uses-react": "off",
"react/prop-types": "off",
"new-cap": ["warn", { "properties": false }],
"no-redeclare": "off",
"jsx-a11y/aria-role": ["warn", { "ignoreNonDOM": true }],
"arrow-body-style": "off",
"consistent-return": "off",
"import/no-default-export": "off",
"import/prefer-default-export": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-nested-ternary": "off",
"no-underscore-dangle": "off",
"no-extra-boolean-cast": "off",
"radix": "off"
},
"settings": { "react": { "version": "detect" } }
}