Skip to content

Commit

Permalink
[eslint config] [react] disable two buggy rules, temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 10, 2018
1 parent 96317f8 commit b6a268f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/eslint-config-airbnb/rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,13 @@ module.exports = {

// One JSX Element Per Line
// https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/jsx-one-expression-per-line.md
'react/jsx-one-expression-per-line': 'error',
// TODO: re-enable when an option for text children is available
'react/jsx-one-expression-per-line': 'off',

// Enforce consistent usage of destructuring assignment of props, state, and context
// https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/destructuring-assignment.md
'react/destructuring-assignment': ['error', 'always'],
// TODO: re-enable when component detection is fixed
'react/destructuring-assignment': ['off', 'always'],

// Prevent using this.state within a this.setState
// https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/no-access-state-in-setstate.md
Expand Down

0 comments on commit b6a268f

Please sign in to comment.