-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
104 lines (104 loc) · 2.4 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
95
96
97
98
99
100
101
102
103
104
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb-typescript",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:import/typescript",
"plugin:react-hooks/recommended",
"plugin:@next/next/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"jsx-a11y/label-has-for":"off",
"jsx-a11y/label-has-associated-control": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": [
"PascalCase"
],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"@typescript-eslint/ban-types": [
"warn",
{
"types": {
"Function": {
"message": "Prefer a specific function type, like `() => void`."
}
}
}
],
"@typescript-eslint/ban-ts-comment": [
"warn",
{
"ts-ignore": true
}
],
"max-len": "off",
"react/prop-types": "off",
"import/prefer-default-export": 0,
"react/jsx-props-no-spreading": 0,
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/no-unused-expressions": 0,
"@typescript-eslint/no-use-before-define": [
"off"
],
"@typescript-eslint/comma-dangle": [
"error",
{
"arrays": "always-multiline",
"enums": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline",
"imports": "always-multiline",
"objects": "always-multiline"
}
],
"import/extensions": [
"off",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"jsx-a11y/anchor-is-valid": "off",
"react/require-default-props": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": [
"off", {
"handlers": [
"onClick"
]
}
]
}
}