-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
executable file
·89 lines (89 loc) · 2.16 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
85
86
87
88
89
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"next",
"prettier/prettier",
"next/core-web-vitals",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint",
"react",
"react-hooks",
"import",
"jsx-a11y",
"prettier"
],
"rules": {
"prettier/prettier": "error",
"import/prefer-default-export": 0,
"import/extensions": 0,
"import/no-anonymous-default-export": 0,
"react/require-default-props": 0,
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": [
2,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],
"comma-dangle": ["error", "always-multiline"],
"computed-property-spacing": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"eol-last": ["error", "always"],
"quotes": ["error", "single"],
"no-tabs": "error",
"object-shorthand": "error",
"@typescript-eslint/no-redeclare": 0,
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
["parent", "sibling"],
"index"
],
"pathGroups": [
{
"pattern": "next*/*",
"group": "builtin",
"patternOptions": {
"partial": true
},
"position": "before"
},
{
"pattern": "react*/*",
"group": "builtin",
"patternOptions": {
"partial": true
},
"position": "after"
},
{
"pattern": "*.[s]css",
"group": "index",
"position": "after"
}
],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"pathGroupsExcludedImportTypes": ["next", "react"],
"newlines-between": "always"
}
]
},
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"es6": true
}
}