Skip to content

Commit 24223ee

Browse files
authored
[eslint config] [patch] class-methods-use-this: exempt React getChildContext
Added `getChildContext` to the exceptions list for `class-methods-use-this`
1 parent 59db4aa commit 24223ee

File tree

1 file changed

+1
-0
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+1
-0
lines changed

packages/eslint-config-airbnb/rules/react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
'render',
2424
'getInitialState',
2525
'getDefaultProps',
26+
'getChildContext',
2627
'componentWillMount',
2728
'componentDidMount',
2829
'componentWillReceiveProps',

0 commit comments

Comments
 (0)