-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
73 lines (73 loc) · 2.16 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
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"ecmaFeatures": { "jsx": true }
},
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["*.test.ts", "*.test.tsx"],
"rules": {
"no-console": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
],
"parser": "@typescript-eslint/parser",
"plugins": ["react", "@typescript-eslint"],
"extends": [
"next/core-web-vitals",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"google",
"prettier"
],
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": ["error", { "before": false, "after": true }],
"constructor-super": "error",
"eol-last": ["error", "always"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"space-infix-ops": ["error", { "int32Hint": false }],
"no-trailing-spaces": "error",
"curly": ["error", "multi"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0, "maxBOF": 0 }],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"no-unused-vars": "off",
"valid-jsdoc": "off",
"require-jsdoc": "off",
"new-cap": "off",
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"react/display-name": "error",
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "all",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
}
}