-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc
52 lines (52 loc) · 1.77 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint/eslint-plugin", "jsx-a11y", "react-refresh"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended",
"plugin:react/recommended"
],
"root": true,
"env": {
"node": true,
"jest": true
},
"ignorePatterns": ["**/*.js", "/dist", "/node_modules"],
"rules": {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"prettier/prettier": ["error", {}, { "usePrettierrc": true }],
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-empty-interface": [
"error",
{ "allowSingleExtends": true }
],
"curly": ["error", "all"],
"func-style": ["error", "expression"],
"no-unreachable": "error",
"object-shorthand": ["error", "properties"],
"prefer-arrow-callback": "error",
"prefer-const": ["error", { "destructuring": "all" }],
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
"react-refresh/only-export-components": "error",
"react/no-unescaped-entities": ["error", { "forbid": [">", "}"] }],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off"
},
"settings": { "react": { "version": "detect" } }
}