-
Notifications
You must be signed in to change notification settings - Fork 73
/
.eslintrc.json
60 lines (58 loc) · 1.72 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
53
54
55
56
57
58
59
60
{
"extends": ["next/core-web-vitals", "prettier"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"prettier/prettier": "error",
"no-template-curly-in-string": "off",
"no-useless-escape": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-extend-native": "off",
"no-sequences": "off",
"react-hooks/exhaustive-deps": "off",
"react/jsx-pascal-case": "off",
"react/display-name": "off",
// TODO:
"react/no-unescaped-entities": "off",
"@next/next/no-img-element": "off",
"@next/next/no-page-custom-font": "off",
"react/no-children-prop": "off",
"@typescript-eslint/no-explicit-any": "off",
// Add TypeScript specific rules (and turn off ESLint equivalents)
"@typescript-eslint/consistent-type-assertions": "warn",
"no-array-constructor": "off",
"@typescript-eslint/no-array-constructor": "warn",
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": "warn",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"warn",
{
"functions": false,
"classes": false,
"variables": false,
"typedefs": false
}
],
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "none",
"varsIgnorePattern": "^_error$",
"ignoreRestSiblings": true
}
],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "warn"
}
}