forked from dnd-side-project/dnd-11th-6-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
111 lines (111 loc) · 2.53 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
{
"extends": [
"next/core-web-vitals",
"airbnb",
"airbnb-typescript",
"prettier",
"plugin:import/recommended",
"plugin:storybook/recommended"
],
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["react", "import"],
"rules": {
"jsx-a11y/label-has-associated-control": [
2,
{
"some": ["nesting", "id"]
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"test.{ts,tsx}",
"test-*.{ts,tsx}",
"**/*{.,_}{test,spec}.{ts,tsx}",
"**/jest.config.ts",
"**/jest.setup.ts"
],
"optionalDependencies": false
}
],
"jsx-a11y/media-has-caption": "off",
"no-nested-ternary": "off",
"no-console": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-alert": "off",
"react-hooks/exhaustive-deps": "off",
"react/button-has-type": "off",
"react/function-component-definition": "off",
"react/no-array-index-key": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-use-before-define": "off",
"import/order": [
"error",
{
"groups": [
"type",
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"unknown"
],
"pathGroups": [
{
"pattern": "react*",
"group": "external",
"position": "before"
},
{
"pattern": "@hooks/",
"group": "internal",
"position": "after"
},
{
"pattern": "@pages/",
"group": "internal",
"position": "after"
},
{
"pattern": "@components/*",
"group": "internal",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["@tanstack*"],
"alphabetize": {
"order": "asc"
}
}
]
},
"ignorePatterns": [
"public/**/*.js",
"jest.config.js",
"jest.setup.js",
"scripts/dev.js"
],
"overrides": [
{
"files": ["*.stories.tsx", "*.stories.jsx"],
"rules": {
"import/no-extraneous-dependencies": "off"
}
},
{
"files": ["**/route.ts", "**/route.tsx"],
"rules": {
"import/prefer-default-export": "off"
}
}
]
}