We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dae497 commit 934344dCopy full SHA for 934344d
1 file changed
src/react/index.ts
@@ -18,10 +18,13 @@ export default {
18
'@react/button-has-type': 'error',
19
// 컴포넌트는 항상 DisplayName를 가짐
20
'@react/display-name': 'error',
21
- // 컴포넌트는 반드시 함수형으로 선언됨
+ // 기명 컴포넌트는 함수형으로, 익명 컴포넌트는 애로우 메서드로 강제
22
'@react/function-component-definition': [
23
'error',
24
- 'function'
+ {
25
+ namedComponents: 'function-declaration',
26
+ unnamedComponents: 'arrow-function'
27
+ }
28
],
29
// useState의 get, set 객체명은 대칭적으로 구성됨
30
'@react/hook-use-state': 'error',
0 commit comments