forked from slid-todo/front
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
65 lines (65 loc) · 1.72 KB
/
.eslintrc.json
File metadata and controls
65 lines (65 loc) · 1.72 KB
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"eslint:recommended", // 기본 ESLint 권장 규칙
"next",
"plugin:@typescript-eslint/recommended", // TypeScript 권장 규칙
"plugin:react-hooks/recommended", // React Hooks 권장 규칙
"plugin:import/recommended",
"plugin:import/typescript", // TypeScript용 import 규칙
"plugin:tailwindcss/recommended", // Tailwind CSS 권장 규칙
"next/core-web-vitals", // Next.js Core Web Vitals 규칙
"plugin:prettier/recommended", // Prettier와 ESLint 통합
"prettier",
"import"
],
"plugins": [
"@typescript-eslint", // TypeScript 지원
"react-hooks", // React Hook 지원
"import", // import 문법 검사
"tailwindcss", // Tailwind CSS 클래스명 검사
"prettier" // Prettier와 통합
],
"env": {
"browser": true,
"node": true
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"import/order": [
"error",
{
"groups": [
"external", // 외부 라이브러리
"builtin", // Node.js 내장 모듈
"internal", // 경로 별칭 (@)
"parent", // 부모 경로 (..)
"sibling", // 같은 경로 (./)
"index", // 현재 디렉토리 (./)
"object"
],
"pathGroups": [
{
"pattern": "react*",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react*"]
}
]
}
}