Skip to content

[eslint-*] v2 rc bugs #75

Closed
Closed
@yongholeeme

Description

@yongholeeme
  • react-hooks/rules-of-hooks
    한글 컴포넌트에서 에러 발생 [eslint-plugin-react-hooks] only allow capitalized component names facebook/react#25162
    Error: React Hook "useState" is called in function "한글" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
    • v5 부터 생긴 이슈, 대문자로 시작하는 컴포넌트 이름만 허용
    • v4 는 eslint peer dependencies 에서 eslint@9을 지원하지 않음
    • 근본룰이므로 일단 따라가고, 한글 컴포넌트 사용하는 쪽에서 자체적으로 대응하는 것으로 결정

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions