-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
27 lines (27 loc) ยท 1.27 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
{
"extends": ["react-app", "plugin:prettier/recommended"],
"rules": {
"no-var": "warn", // var ๊ธ์ง
"no-multiple-empty-lines": "warn", // ์ฌ๋ฌ ์ค ๊ณต๋ฐฑ ๊ธ์ง
"no-nested-ternary": "warn", // ์ค์ฒฉ ์ผํญ ์ฐ์ฐ์ ๊ธ์ง
"no-console": "warn", // console.log() ๊ธ์ง
"eqeqeq": "warn", // ์ผ์น ์ฐ์ฐ์ ์ฌ์ฉ ํ์
"dot-notation": "warn", // ๊ฐ๋ฅํ๋ค๋ฉด dot notation ์ฌ์ฉ
"no-unused-vars": "warn", // ์ฌ์ฉํ์ง ์๋ ๋ณ์ ๊ธ์ง
"react/destructuring-assignment": "warn", // state, prop ๋ฑ์ ๊ตฌ์กฐ๋ถํด ํ ๋น ์ ์ฉ
"react/jsx-pascal-case": "warn", // ์ปดํฌ๋ํธ ์ด๋ฆ์ PascalCase๋ก
"react/no-direct-mutation-state": "warn", // state ์ง์ ์์ ๊ธ์ง
"react/jsx-no-useless-fragment": "warn", // ๋ถํ์ํ fragment ๊ธ์ง
"react/no-unused-state": "warn", // ์ฌ์ฉ๋์ง ์๋ state
"react/jsx-key": "warn", // ๋ฐ๋ณต๋ฌธ์ผ๋ก ์์ฑํ๋ ์์์ key ๊ฐ์
"react/self-closing-comp": "warn", // ์
ํ ํด๋ก์ง ํ๊ทธ ๊ฐ๋ฅํ๋ฉด ์ ์ฉ
"react/jsx-curly-brace-presence": "warn", // jsx ๋ด ๋ถํ์ํ ์ค๊ดํธ ๊ธ์ง
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
"useTabs": false
}
] //delete 'cr' prettier/prettier ์ค๋ฅ๋ฅผ ํผํ๊ธฐ์ํด ์๋์ฐ ์ ์ ์๊ฒ ํ์ํ ๋ถ๋ถ
}
}