-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
49 lines (49 loc) · 1.15 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": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"ignorePatterns": ["docs"],
"plugins": ["@typescript-eslint", "prettier", "eslint-plugin-tsdoc"],
"ignorePatterns": ["generated"],
"rules": {
"@typescript-eslint/no-unsafe-argument": "error",
"prettier/prettier": "error",
"tsdoc/syntax": "error",
"no-constant-condition": "off",
"react-hooks/exhaustive-deps": "off",
"no-restricted-syntax": [
"error",
":not(BinaryExpression:matches([operator='!=='], [operator='==='])) > Literal[value=null]",
"ThrowStatement"
],
"no-restricted-imports": [
"error",
{
"patterns": ["../"]
}
]
},
"overrides": [
{
"files": ["*.js", "*.mjs", "*.spec.ts"],
"rules": {
"tsdoc/syntax": "off"
}
},
{
"files": ["src/migrations/*"],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}