Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit 2d5630f

Browse files
committed
fix(react): adjust react/sort-comp rule for next.js
1 parent 42f8cab commit 2d5630f

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-react

1 file changed

+1
-1
lines changed

packages/eslint-config-react/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module.exports = {
115115
'instance-variables',
116116
'lifecycle',
117117
'/^handle.+$/',
118-
'/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/',
118+
'/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$|InitialProps$)).+$/',
119119
'everything-else',
120120
'/^render.+$/',
121121
'render',

0 commit comments

Comments
 (0)