Skip to content

Commit

Permalink
[eslint config] [patch] disable deprecated and redundant `react/requi…
Browse files Browse the repository at this point in the history
…re-extension` rule

Fixes #978.
  • Loading branch information
ljharb committed Sep 24, 2016
1 parent 0faabe0 commit 0dae56a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/eslint-config-airbnb/rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ module.exports = {

// Restrict file extensions that may be required
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-extension.md
'react/require-extension': ['error', { extensions: ['.jsx', '.js'] }],
// deprecated in favor of import/extensions
'react/require-extension': ['off', { extensions: ['.jsx', '.js'] }],

// Require render() methods to return something
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-render-return.md
Expand Down

0 comments on commit 0dae56a

Please sign in to comment.