-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
57 lines (55 loc) · 1.35 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "import"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module",
// project: 'tsconfig.json',
"tsconfigRootDir": "__dirname"
},
"env": {
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"next/core-web-vitals"
],
"rules": {
// 'React' must be in scope when using JSX 에러 지우기(Next.js)
"react/react-in-jsx-scope": "off",
// ts파일에서 tsx구문 허용(Next.js)
"react/jsx-filename-extension": [1, { "extensions": [".ts", ".tsx"] }],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
["parent", "sibling", "index"],
"type",
"unknown"
],
"pathGroups": [
{ "pattern": "react", "group": "builtin", "position": "after" },
{
"pattern": "react-dom/client",
"group": "builtin",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": [],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
}
}