-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
49 lines (48 loc) · 1.44 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
{
"extends": ["eslint:recommended", "next/core-web-vitals", "prettier"],
"plugins": ["@typescript-eslint", "prettier"],
"parser": "@typescript-eslint/parser",
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": ["./tsconfig.json"]
// "tsconfigRootDir": "__dirname"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
//declaring "next/core-web-vitals" and "prettier" again in case
//the two plugin:... configs above overrode any of their rules
//Also, "prettier" needs to be last in any extends array
"next/core-web-vitals",
"prettier"
]
}
],
"rules": {
// "prettier/prettier": "error",
"spaced-comment": "off",
"no-console": "warn",
"consistent-return": "off",
"func-names": "off",
"object-shorthand": "off",
"no-process-exit": "off",
"no-param-reassign": "off",
"no-return-await": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"prefer-destructuring": ["error", { "object": true, "array": false }],
"no-unused-vars": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}
]
}
}