-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.eslintrc.json
43 lines (43 loc) · 1.2 KB
/
template.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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
"plugins": ["prettier", "@typescript-eslint", "unused-imports"],
"rules": {
"react/react-in-jsx-scope": "off",
// all prettier file errors
// "prettier/prettier": "error",
// "@typescript-eslint/explicit-module-boundary-types": 0,
// "@typescript-eslint/ban-ts-ignore": 0,
// "@typescript-eslint/ban-ts-comment": 0,
// "@typescript-eslint/no-unused-vars": 2,
// "@typescript-eslint/no-explicit-any": 1,
// "no-console": 1,
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{ "vars": "all", "args": "after-used", "ignoreRestSiblings": false }
],
"import/no-unused-modules": [
"error",
{
"missingExports": true,
"unusedExports": true
}
],
"no-unused-vars": [
"warn",
{ "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }
]
},
// "ignorePatterns": ["src/server/*.js"],
"globals": {
"React": "writable"
}
}