-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add react/function-component-definition #42
Conversation
doong-jo
commented
Apr 20, 2022
- Add react/function-component-definition styleguide rule
- fix foramt
@@ -23,7 +23,7 @@ module.exports = { | |||
"plugin:@typescript-eslint/recommended", | |||
"plugin:import/typescript", | |||
], | |||
plugins: ["react", "jsx-a11y", "import", "prettier", "@typescript-eslint", "simple-import-sort",], | |||
plugins: ["react", "jsx-a11y", "import", "prettier", "@typescript-eslint", "simple-import-sort"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
불필요한 comma 제거
@@ -83,7 +84,7 @@ module.exports = { | |||
"import/prefer-default-export": "off", | |||
// 테스트 코드에 있는 dependencies를 dev로 옮기라고 경고 뜨는 이슈를 해결하기 위함 | |||
// https://github.com/banksalad/styleguide/pull/35#discussion_r603753937 | |||
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["/**/*.ts?(x)"]}], | |||
"import/no-extraneous-dependencies": ["error", { "devDependencies": ["/**/*.ts?(x)"] }], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prettier
@@ -17,7 +17,7 @@ | |||
"eslint-plugin-import": "2.22.1", | |||
"eslint-plugin-jsx-a11y": "6.4.1", | |||
"eslint-plugin-prettier": "3.3.1", | |||
"eslint-plugin-react": "7.23.1", | |||
"eslint-plugin-react": "7.29.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsx-eslint/eslint-plugin-react#3248
관련 rule에 대한 개선사항이 해당 버전에 fix 되었음
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
ask; 7.23.1 -> 7.29.4 간의 변경사항을 팔로업할 필요는 없을까요?
당장 다 팔로업하기 보다는 함께 공통 eslint를 쓰게 되는 시점(monorepo)에 자연스레 챙겨지길 기대합니다! |