From 24223ee444409087f1105be0c80f759d0d75d06f Mon Sep 17 00:00:00 2001 From: Tim van der Horst Date: Tue, 27 Sep 2016 18:07:56 +1000 Subject: [PATCH] [eslint config] [patch] `class-methods-use-this`: exempt React `getChildContext` Added `getChildContext` to the exceptions list for `class-methods-use-this` --- packages/eslint-config-airbnb/rules/react.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-airbnb/rules/react.js b/packages/eslint-config-airbnb/rules/react.js index 11f2825a5a..5f81e40c86 100644 --- a/packages/eslint-config-airbnb/rules/react.js +++ b/packages/eslint-config-airbnb/rules/react.js @@ -23,6 +23,7 @@ module.exports = { 'render', 'getInitialState', 'getDefaultProps', + 'getChildContext', 'componentWillMount', 'componentDidMount', 'componentWillReceiveProps',