-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
35 lines (35 loc) ยท 1.25 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"parserOptions": {
"project": "./tsconfig.json",
"createDefaultProgram": true
},
"env": {
// ์ ์ญ๊ฐ์ฒด๋ฅผ eslint๊ฐ ์ธ์ํ๋ ๊ตฌ๊ฐ
"browser": true, // document๋ window ์ธ์๋๊ฒ ํจ
"node": true,
"es6": true
},
"ignorePatterns": ["node_modules/"], // eslint ๋ฏธ์ ์ฉ๋ ํด๋๋ ํ์ผ ๋ช
์
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended", // ts ๊ถ์ฅ
"plugin:prettier/recommended", // eslint์ ํฌ๋งคํ
์ prettier๋ก ์ฌ์ฉ.
"prettier" // eslint-config-prettier prettier์ ์ค๋ณต๋ eslint ๊ท์น ์ ๊ฑฐ
],
"rules": {
"no-unused-vars": 1,
"react/react-in-jsx-scope": "off", // react 17๋ถํด import ์ํด๋๋ผ์ ๊ธฐ๋ฅ ๋
// ๊ฒฝ๊ณ ํ์, ํ์ผ ํ์ฅ์๋ฅผ .ts๋ .tsx ๋ชจ๋ ํ์ฉํจ
"react/jsx-filename-extension": [
"warn",
{ "extensions": [".ts", ".tsx"] }
],
"no-useless-catch": "off" // ๋ถํ์ํ catch ๋ชป์ฐ๊ฒ ํ๋ ๊ธฐ๋ฅ ๋
}
}