Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #483 from tetsuharuohzeki/new-jsx-transform
Browse files Browse the repository at this point in the history
Disable some rules to make compatible with new jsx transform
  • Loading branch information
tetsuharuohzeki authored Feb 14, 2021
2 parents c9541e3 + 4408a49 commit c8a6eff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/eslintrc_react.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ module.exports = {
'react/prop-types': [1, {
'skipUndeclared': false,
}],
'react/react-in-jsx-scope': 1,
// See https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint
'react/react-in-jsx-scope': 'off',
'react/require-default-props': 0, // This does not resolve the essence of problem.
'react/require-optimization': [0, {
'allowDecorators': []
Expand Down Expand Up @@ -237,7 +238,8 @@ module.exports = {
'beforeSelfClosing': 'allow', // Allow to write more XML-ly
'afterOpening': 'never',
}],
'react/jsx-uses-react': 1,
// See https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint
'react/jsx-uses-react': 'off',
'react/jsx-uses-vars': 1,
'react/jsx-wrap-multilines': 2,
}
Expand Down

0 comments on commit c8a6eff

Please sign in to comment.