Skip to content

Commit

Permalink
close react/react-in-jsx-scope
Browse files Browse the repository at this point in the history
close #67
  • Loading branch information
chenshuai2144 committed Dec 28, 2020
1 parent 1c4339c commit 3b94ff4
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,22 @@ module.exports = {
jasmine: true,
},
rules: {
'react/jsx-props-no-spreading': 0,
'react/state-in-constructor': 0,
'react/static-property-placement': 0,
// Too restrictive: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/destructuring-assignment.md
'react/destructuring-assignment': 'off',
'react/jsx-filename-extension': 'off',
'react/no-array-index-key': 'warn',
'react-hoo react/react-in-jsx-scopeks/rules-of-hooks': 'error', // Checks rules of Hooks
'react-hooks/exhaustive-deps': 'warn', // Checks deps of Hooks
'react/require-default-props': 0,
'react/jsx-fragments': 0,
'react/jsx-wrap-multilines': 0,
'react/prop-types': 0,
'react/forbid-prop-types': 0,
'react/sort-comp': 0,
'react/react-in-jsx-scope': 0,
'react/jsx-one-expression-per-line': 0,
'generator-star-spacing': 0,
'function-paren-newline': 0,
Expand All @@ -68,6 +80,7 @@ module.exports = {
'import/no-named-as-default-member': 0,
'import/no-duplicates': 0,
'import/no-self-import': 0,
'import/extensions': 0,
'import/no-useless-path-segments': 0,
'jsx-a11y/no-noninteractive-element-interactions': 0,
'jsx-a11y/click-events-have-key-events': 0,
Expand All @@ -80,17 +93,6 @@ module.exports = {
// Too restrictive, writing ugly code to defend against a very unlikely scenario: https://eslint.org/docs/rules/no-prototype-builtins
'no-prototype-builtins': 'off',
'unicorn/prevent-abbreviations': 'off',
'react/jsx-props-no-spreading': 0,
'react/state-in-constructor': 0,
'react/static-property-placement': 0,
// Too restrictive: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/destructuring-assignment.md
'react/destructuring-assignment': 'off',
'react/jsx-filename-extension': 'off',
'react/no-array-index-key': 'warn',
'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks
'react-hooks/exhaustive-deps': 'warn', // Checks deps of Hooks
'react/require-default-props': 0,
'react/jsx-fragments': 0,
// Conflict with prettier
'arrow-body-style': 0,
'arrow-parens': 0,
Expand All @@ -100,7 +102,6 @@ module.exports = {
'eslint-comments/no-unlimited-disable': 0,
'no-param-reassign': 2,
'space-before-function-paren': 0,
'import/extensions': 0,
...(isTsProject ? tsEslintConfig : {}),
},
settings: {
Expand Down

0 comments on commit 3b94ff4

Please sign in to comment.