-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
executable file
·61 lines (61 loc) · 1.76 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
{
"plugins": ["@typescript-eslint"],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/jsx-runtime",
"prettier"
],
"rules": {
"quotes": ["error", "single"],
"@typescript-eslint/no-explicit-any": "error",
"import/no-default-export": "error",
"import/newline-after-import": ["error", {"count": 2}],
"no-trailing-spaces": "error",
"react/jsx-curly-brace-presence": ["warn", {"props": "always", "children": "ignore", "propElementValues": "ignore"}],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "comma",
"requireLast": true
},
"overrides": {
"interface": {
"multiline": {
"delimiter": "semi",
"requireLast": true
}
}
}
}],
"comma-dangle": [
"error",
{
"arrays": "never",
"objects": "only-multiline",
"imports": "never",
"exports": "never",
"functions": "never"
}
]
},
"overrides": [
{
"files": ["pages/*", "pages/api/*"],
"rules": {
"import/no-default-export": "off"
}
}
]
}