-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
52 lines (52 loc) · 1.34 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"next",
"next/core-web-vitals",
"prettier",
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"prettier",
"react",
"import",
"simple-import-sort",
"@typescript-eslint"
],
"rules": {
"no-unused-vars": "warn",
"prefer-const": "error",
"no-irregular-whitespace": "error",
"no-trailing-spaces": "error",
"semi": "error",
"no-empty-function": "error",
"no-duplicate-imports": "error",
"newline-after-var": "error",
"camelcase": "warn",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-unused-vars": "off", // Already handled by eslint:recommended
"@typescript-eslint/no-empty-function": "off" // Already handled by eslint:recommended
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"no-undef": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}