This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
66 lines (66 loc) · 1.69 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"simple-import-sort",
"@stylistic/eslint-plugin-js",
"prettier"
],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.mjs", "*.cjs"],
"rules": {
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": "allow-with-description",
"ts-nocheck": true,
"ts-check": false
}
],
"@typescript-eslint/ban-types": ["off"],
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/no-explicit-any": ["warn"],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-use-before-define": ["warn"],
"@typescript-eslint/no-non-null-assertion": ["warn"],
"@stylistic/js/no-multiple-empty-lines": [
"error",
{ "max": 1, "maxEOF": 0 }
],
"prettier/prettier": "error",
"@stylistic/js/semi": ["error", "never"],
"@stylistic/js/indent": ["error", "tab"],
"@stylistic/js/comma-dangle": ["error", "never"],
"@stylistic/js/quotes": [
"error",
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
]
}
},
{
"files": ["*.tsx"],
"plugins": ["react-hooks"],
"extends": ["plugin:react/recommended"],
"rules": {
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"react/prop-types": ["off"],
"react/react-in-jsx-scope": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}
]
}