Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
관련 이슈 번호
작업 내용
eslint plugin 확장
plugin:react/recommended
: React 코드의 기본적인 Best Practices 규칙plugin:react-hooks/recommended
: React Hooks 사용에 대한 규칙plugin:jsx-a11y/recommended
: 웹 접근성(Accessibility) 관련 규칙plugin:react/jsx-runtime
: React 17 이상에서 도입된 새로운 JSX Transform을 위한 설정eslint rule 추가
'react/jsx-curly-brace-presence': ['error', { props: 'never', children: 'never' }]
: 불필요한 중괄호 사용을 방지'react/jsx-boolean-value': ['error', 'never']
: JSX에서 boolean props를 축약형으로 사용하도록 강제'no-multiple-empty-lines': ['error', { max: 1 }]
: 연속된 빈 줄을 최대 1줄로 제한'import/no-duplicates': 'error'
: 동일한 모듈의 중복 import를 방지'no-console': 'error'
: console.log() 등 console 객체 사용을 금지PR 포인트
개발하면서 필요한 규칙이 있으면 확장해나갈 계획입니다~!
고민과 학습내용
eslintrc에서
extends
와plugins
의 차이스크린샷