-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
72 lines (72 loc) · 2.65 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
61
62
63
64
65
66
67
68
69
70
71
72
{
"env": {
"es2021": true,
"node": true
},
"extends": ["xo", "xo-react", "xo-typescript", "prettier", "next/core-web-vitals"],
"plugins": ["react", "react-hooks", "unused-imports", "no-relative-import-paths", "regex"],
"parser": "@typescript-eslint/parser",
"rules": {
"no-negated-condition": "off",
"capitalized-comments": "off",
"new-cap": "off",
"no-await-in-loop": "off",
"default-case": "off",
"unused-imports/no-unused-imports": "error",
"no-relative-import-paths/no-relative-import-paths": [
"error",
{ "allowSameFolder": false, "rootDir": "src", "prefix": "@" }
],
"import/no-anonymous-default-export": "off",
"react/display-name": "off",
"react/function-component-definition": "off",
"react/boolean-prop-naming": "off",
"react/no-danger": "off",
"react/jsx-pascal-case": "off",
"react/state-in-constructor": "off",
"react/no-unused-prop-types": "off",
"react/jsx-curly-brace-presence": [
"error",
{ "props": "never", "children": "ignore", "propElementValues": "always" }
],
"react/static-property-placement": ["error", "static getter"],
"react/require-default-props": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/non-nullable-type-assertion-style": "off",
"@typescript-eslint/no-unnecessary-condition": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"regex/invalid": [
"error",
[
{
"regex": "\\w?<h[1-6]",
"message": "Please use custom heading components instead of h1-h6 tags",
"replacement": {
"function": "return text.toUpperCase()"
}
}
]
]
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"ignorePatterns": ["*.config.js"]
}