-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
48 lines (48 loc) · 1.07 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"next",
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"plugins": ["@typescript-eslint", "react"],
"rules": {
// JavaScript rules
"prefer-const": "warn",
"no-var": "warn",
"no-unused-vars": "warn",
"object-shorthand": "warn",
"quote-props": ["warn", "as-needed"],
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "warn",
// TypeScript rules
"@typescript-eslint/array-type": [
"warn",
{
"default": "array"
}
],
"@typescript-eslint/consistent-type-assertions": [
"warn",
{
"assertionStyle": "as",
"objectLiteralTypeAssertions": "never"
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"{}": false
}
}
]
},
"overrides": [
{
"files": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
"excludedFiles": ["node_modules", ".next/**"]
}
]
}