-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc
More file actions
29 lines (29 loc) · 838 Bytes
/
.eslintrc
File metadata and controls
29 lines (29 loc) · 838 Bytes
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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/react-in-jsx-scope": "off", // import react from 'react'가 없을 경우
"react/no-unescaped-entities": "off", // 문자열 내에서 " ' > } 가 쓰일 경우
"react/prop-types": "off", // prop-types가 사용되고 있을 경우
"no-unused-vars": "warn", // 사용하지 않는 변수, 함수가 있을 경우
"no-console": "warn", // console.log가 있을 경우
"no-undef": "off" // 정의되지 않은 변수가 있을 경우
}
}