-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
149 lines (149 loc) ยท 3.51 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"root": true,
"plugins": ["@typescript-eslint", "prettier", "unused-imports"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"ignorePatterns": ["node_modules/", "build/"],
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:import/recommended",
"prettier",
"plugin:storybook/recommended"
],
"rules": {
"react/button-has-type": "off",
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": [
"warn",
{
"extensions": [".ts", ".tsx"]
}
],
"no-unused-vars": "off",
"no-useless-catch": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}
],
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
"index",
"object",
"type",
"unknown"
],
"pathGroups": [
{
"pattern": "{next*,next*/**}",
"group": "external",
"position": "before"
},
{
"pattern": "{react*,react*/**}",
"group": "external",
"position": "before"
},
{
"pattern": "{jotai*,jotai*/**}",
"group": "external",
"position": "before"
},
{
"pattern": "@tanstack/**",
"group": "external",
"position": "before"
},
{
"pattern": "@providers/**",
"group": "internal",
"position": "before"
},
{
"pattern": "@public/**",
"group": "internal",
"position": "before"
},
{
"pattern": "@components/**",
"group": "internal",
"position": "before"
},
{
"pattern": "@hooks/**",
"group": "internal",
"position": "before"
},
{
"pattern": "@utils/**",
"group": "internal",
"position": "before"
},
{
"pattern": "@constant/**",
"group": "internal",
"position": "before"
},
{
"pattern": "@api/**",
"group": "internal",
"position": "before"
},
{
"pattern": "@type/**",
"group": "internal",
"position": "before"
},
{
"pattern": ".**",
"group": "unknown"
}
],
"pathGroupsExcludedImportTypes": [],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"import/prefer-default-export": "off"
}
}