-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
94 lines (94 loc) · 2.58 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"commonjs": true,
"node": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"prettier",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["import", "jsx-a11y", "react", "react-hooks", "prettier", "unused-imports"],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"camelcase": "off",
"import/extensions": [
"error",
{
"js": "ignorePackages",
"jsx": "ignorePackages",
"ts": "ignorePackages",
"tsx": "ignorePackages"
}
],
"import/no-unresolved": "off",
"no-console": "off",
"no-eval": "error",
"react/jsx-filename-extension": [
"warn",
{
"extensions": [".tsx"]
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"@typescript-eslint/no-var-requires": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/jsx-one-expression-per-line": "off",
"indent": "off",
"global-require": "off",
"jsx-a11y/anchor-is-valid": "off",
"react/jsx-closing-bracket-location": ["error", "line-aligned"],
"react-hooks/exhaustive-deps": "off",
"react/require-default-props": "off",
"no-unused-vars": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
}
}