diff --git a/packages/neutrino-preset-react/src/index.js b/packages/neutrino-preset-react/src/index.js index 5559644..7db13f7 100644 --- a/packages/neutrino-preset-react/src/index.js +++ b/packages/neutrino-preset-react/src/index.js @@ -30,7 +30,22 @@ module.exports = neutrino => { }, rules: { 'react/prop-types': ['off'], - 'jsx-quotes': ['error', 'prefer-double'] + 'jsx-quotes': ['error', 'prefer-double'], + 'class-methods-use-this': ['error', { + exceptMethods: [ + 'render', + 'getInitialState', + 'getDefaultProps', + 'getChildContext', + 'componentWillMount', + 'componentDidMount', + 'componentWillReceiveProps', + 'shouldComponentUpdate', + 'componentWillUpdate', + 'componentDidUpdate', + 'componentWillUnmount' + ] + }] } }) };