forked from 2weeks-team/2weeks-team
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
41 lines (36 loc) · 950 Bytes
/
.eslintrc
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
{
// 전역변수 환경 설정
"env": {
"browser": true,
"es2021": true,
"node": true
},
// npm을 통해 설치한 외부 ESLint 설정 등록 (eslint-config-{name}으로 설치)
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
// ESLint에 지원할 JavaScript 옵션 설정
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
// parser 등록
"parser": "@typescript-eslint/parser",
// 사용자 규칙 추가할 플러그인 (eslint-plugin-{name}으로 설치)
"plugins": [
"@typescript-eslint",
"prettier"
],
// 플러그인을 통해 설치한 것 외에 규칙 설정
"rules": {
"prettier/prettier": [
"error", {
"endOfLine": "auto"
}
]
}
}