-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
29 lines (29 loc) · 924 Bytes
/
.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
{
"extends": ["next/core-web-vitals", "eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"root": true,
"rules": {
"react/function-component-definition": [2, {
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}],
"no-console": ["error", { "allow": ["warn", "error"] }],
"@next/next/no-img-element": 0,
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^ignore",
"destructuredArrayIgnorePattern": "^_"
}
],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/await-thenable":"error",
"@typescript-eslint/no-misused-promises": "error"
}
}