-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
58 lines (58 loc) ยท 1.75 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"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": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended", // ts ๊ถ์ฅ
"plugin:prettier/recommended", // eslint์ ํฌ๋งคํ
์ prettier๋ก ์ฌ์ฉ.
"prettier" // eslint-config-prettier prettier์ ์ค๋ณต๋ eslint ๊ท์น ์ ๊ฑฐ
],
"rules": {
"react/react-in-jsx-scope": "off", // react 17๋ถํด import ์ํด๋๋ผ์ ๊ธฐ๋ฅ ๋
// ๊ฒฝ๊ณ ํ์, ํ์ผ ํ์ฅ์๋ฅผ .ts๋ .tsx ๋ชจ๋ ํ์ฉํจ
"react/jsx-filename-extension": ["warn", { "extensions": [".ts", ".tsx"] }],
"no-useless-catch": "off", // ๋ถํ์ํ catch ๋ชป์ฐ๊ฒ ํ๋ ๊ธฐ๋ฅ ๋
"react/self-closing-comp": "off",
"semi": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never"
}
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"linebreak-style": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": "warn",
"import/prefer-default-export": "off",
"jsx-a11y/label-has-associated-control": [
2,
{
"labelAttributes": ["htmlFor"]
}
],
"no-unused-vars": "warn",
"operator-linebreak": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}