Skip to content

Commit

Permalink
chore: eslint 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
blueline1984 committed Apr 29, 2023
1 parent bac279b commit 798b87b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"no-console": ["error", { "allow": ["warn", "error", "info"] }], // console.log() 금지

This comment has been minimized.

Copy link
@yan9vvoojin

yan9vvoojin Apr 29, 2023

Contributor

console.log()를 금지하니까 개발하면서 테스트하기가 힘들더라구요..
그래서 error를 warn 정도로 바꾸면 어떨까 싶습니다!

"eqeqeq": "error", // 일치 연산자 사용 필수
"dot-notation": "error", // 가능하다면 dot notation 사용
"no-unused-vars": "error" // 사용하지 않는 변수 금지

This comment has been minimized.

Copy link
@yan9vvoojin

yan9vvoojin Apr 29, 2023

Contributor

no-unused-vars도 console.log()와 같은 이유로 warn으로 바꾸면 좋을 것 같습니다!

}
"no-unused-vars": "error", // 사용하지 않는 변수 금지
"no-empty": ["error", { "allowEmptyCatch": true }]
},
"ignorePatterns": ["src/components/.keep", "src/pages/.keep"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"format": "prettier --write --cache .",
"lint": "eslint --cache .",

This comment has been minimized.

Copy link
@yan9vvoojin

yan9vvoojin Apr 29, 2023

Contributor

혹시 바뀐 부분의 차이가 뭔지 알 수 있을까요?

"lint": "eslint --cache src/**/*",
"postinstall": "husky install"
},
"eslintConfig": {
Expand Down

0 comments on commit 798b87b

Please sign in to comment.