-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
45 lines (45 loc) · 1.17 KB
/
.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
42
43
44
45
{
"extends": [
"airbnb",
"airbnb-typescript",
"prettier",
"plugin:react/recommended", // eslint-plugin-react에서 추천하는 리액트 린팅 설정
"plugin:@typescript-eslint/recommended", // @typescript-eslint/recommended의 추천 룰 사용
"plugin:prettier/recommended"
],
"plugins": ["prettier", "react", "@typescript-eslint", "react-hooks"], // 해당 플러그인을 사용할것이라고 등록
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true // jsx 활성화
},
"ecmaVersion": 2021,
"sourceType": "module", // import 사용
"project": "./tsconfig.json"
},
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [
1,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
]
}
// "import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
}