-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
84 lines (79 loc) · 2.07 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
79
80
81
82
83
84
{
"env": {
"browser": true,
"es2021": true,
"jest": true,
"node": true
},
"extends": [
"plugin:import/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:unicorn/recommended",
"next/core-web-vitals"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": ["react", "simple-import-sort"],
"rules": {
"arrow-body-style": 2,
"import/exports-last": 2,
"import/first": 2,
"import/newline-after-import": 2,
"import/no-named-as-default": 0,
"import/no-unresolved": 2,
"max-lines": [2, { "max": 250 }],
"no-console": ["error", { "allow": ["error"] }],
"no-restricted-imports": 2,
"no-undef": 2,
"no-unused-vars": 2,
"object-shorthand": 2,
"padding-line-between-statements": [
2,
{ "blankLine": "always", "next": ["if", "return"], "prev": "*" }
],
"prettier/prettier": [2, { "singleQuote": true }],
"quotes": [2, "single"],
"react/jsx-boolean-value": 2,
"react/jsx-curly-brace-presence": 2,
"react/jsx-fragments": [2, "syntax"],
"react/jsx-no-useless-fragment": 2,
"react/jsx-pascal-case": [2, { "allowAllCaps": true }],
"react/no-unknown-property": ["error", { "ignore": ["css", "fetchPriority"] }],
"react/prop-types": 1,
"react/sort-default-props": 2,
"simple-import-sort/imports": [
2,
{
"groups": [
["^react", "^prop-types", "^w", "^@"],
["^@root", "^@/"],
["^\\."]
]
}
],
"unicorn/filename-case": 0,
"unicorn/no-array-reduce": 0,
"unicorn/no-null": 0,
"unicorn/prefer-module": 0,
"unicorn/prevent-abbreviations": 0
},
"settings": {
"import/resolver": {
"alias": [
["@/components", "./src/components"],
["@/graphql", "./src/graphql"],
["@/types", "./src/types"],
["@/css", "./src/css"],
["@/hooks", "./src/hooks"],
["@/utils", "./src/utils"],
["@/json", "./src/json"]
]
}
}
}