Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit b6a268f

Browse files
committed
[eslint config] [react] disable two buggy rules, temporarily
1 parent 96317f8 commit b6a268f

File tree

1 file changed

+4
-2
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,13 @@ module.exports = {
413413

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

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

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

0 commit comments

Comments
 (0)