-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
78 lines (78 loc) · 2.12 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
73
74
75
76
77
78
{
"extends": [
"next",
"next/core-web-vitals",
"plugin:react/recommended",
"prettier"
],
"plugins": [
"@typescript-eslint",
"unused-imports",
"simple-import-sort",
"prettier",
"unicorn"
],
"rules": {
"react/display-name": "off",
"comma-dangle": [
"off",
"always"
],
"prettier/prettier": [
"error"
],
"react/prop-types": "off",
"semi": [
2,
"always"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"react/no-unescaped-entities": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@next/next/no-img-element": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"jsx-a11y/role-supports-aria-props": "off",
"unicorn/better-regex": "error",
"unicorn/error-message": "error",
"unicorn/no-for-loop": "error",
"unicorn/prefer-date-now": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-ternary": "error",
"unicorn/prefer-switch": "error",
"unicorn/prefer-negative-index": "error",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-math-trunc": "error",
"unicorn/prefer-modern-math-apis": "error",
"unicorn/no-unused-properties": "error",
"unicorn/no-unreadable-iife": "error",
"unicorn/prefer-array-find": "error",
"unicorn/no-array-for-each": "error",
"unicorn/no-useless-length-check": "error",
"unicorn/catch-error-name": "error",
"unicorn/consistent-destructuring": "error",
"unicorn/new-for-builtins": "error",
"unicorn/no-useless-spread": "error",
"unicorn/no-useless-switch-case": "error",
"unicorn/no-useless-undefined": "error",
"unicorn/numeric-separators-style": "error",
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"react/jsx-sort-props": "error"
}
}