-
-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
Description
Migration Status
Correctness and best practices rules
-
react/jsx-boolean-value···················->@eslint-react/jsx/prefer-shorthand-boolean -
react/jsx-fragments·······················->@eslint-react/jsx/prefer-shorthand-fragment -
react/jsx-key -----------|··················->@eslint-react/jsx/no-missing-key -
react/no-array-index-key |··················->@eslint-react/jsx/no-array-index-key -
·························|··················->@eslint-react/jsx/no-duplicate-key -
-------------------------|··················->@eslint-react/jsx/no-spreading-key -
react/jsx-props-no-spreading··············->@eslint-react/jsx/no-spreading-props#102 -
react/jsx-no-useless-fragment·············->@eslint-react/jsx/no-useless-fragment -
react/jsx-no-leaked-render················->@eslint-react/jsx/no-leaked-conditional-rendering - [Rule Migration]
react/jsx-max-depth·······················->@eslint-react/jsx/max-depth#104 -
react/jsx-no-comment-textnodes············->@eslint-react/jsx/no-comment-textnodes -
react/jsx-filename-extension··············->@eslint-react/naming-convention/filename-extension -
react/boolean-prop-naming·················->@eslint-react/naming-convention/boolean-prop -
react/jsx-handler-names···················->@eslint-react/naming-convention/handler-prop - [Rule Migration]
react/hook-use-state······················->@eslint-react/naming-convention/use-state#205 - [Rule Migration]
react/display-name························->@eslint-react/react/no-missing-display-name#107 -
react/jsx-no-script-url···················->@eslint-react/react/no-script-url -
react/jsx-no-target-blank·················->@eslint-react/react/no-unsafe-target-blank -
react/button-has-type·····················->@eslint-react/react/no-missing-button-type -
react/iframe-missing-sandbox |············->@eslint-react/react/no-missing-iframe-sandbox -
-----------------------------|··············->@eslint-react/react/no-unsafe-iframe-sandbox -
react/jsx-no-constructed-context-values···->@eslint-react/react/no-constructed-context-value -
react/no-danger···························->@eslint-react/react/no-dangerously-set-innerhtml -
react/no-danger-with-children·············->@eslint-react/react/no-dangerously-set-innerhtml-with-children -
react/no-namespace························->@eslint-react/react/no-namespace -
react/no-deprecated ---------|··············->@eslint-react/react/no-create-class#186 - [Rule Migration]
react/no-find-dom-node ······|··············->@eslint-react/react/no-find-dom-node#173 - [Rule Migration]
react/no-render-return-value |··············->@eslint-react/react/no-render-return-value#183 - [Rule Migration]
react/no-is-mounted ·········|··············->@eslint-react/react/no-is-mounted#185 -
react/no-string-refs ········|··············->@eslint-react/react/no-string-refs -
-----------------------------|··············->@eslint-react/react/no-create-ref -
react/no-children-prop····················->@eslint-react/react/no-children-prop#101 - [Rule Migration]
react/no-direct-mutation-state············->@eslint-react/react/no-direct-mutation-state#202 - [Rule Migration]
@eslint-react/react/no-unsafe-component-will-mount#190 - [Rule Migration]
@eslint-react/react/no-unsafe-component-will-receive-props#191 - [Rule Migration]
@eslint-react/react/no-unsafe-component-will-update#192 - [Rule Migration]
react/no-did-mount-set-state··············->@eslint-react/react/no-set-state-in-component-did-mount#197 - [Rule Migration]
react/no-did-update-set-state·············->@eslint-react/react/no-set-state-in-component-did-update#198 - [Rule Migration]
react/no-will-update-set-state············->@eslint-react/react/no-set-state-in-component-will-update#199 - [Rule Migration]
react/no-redundant-should-component-update->@eslint-react/react/no-redundant-should-component-update#187 -
react/no-object-type-as-default-prop······->@eslint-react/react/no-unstable-default-props -
react/no-unstable-nested-components·······->@eslint-react/react/no-unstable-nested-components -
react/no-unused-state·····················->@eslint-react/react/no-unused-state - [Rule Migration]
react/no-unused-class-component-methods···->@eslint-react/react/no-unused-class-component-members#207 -
react/void-dom-elements-no-children·······->@eslint-react/react/no-children-in-vold-dom-elements -
react/destructuring-assignment············->@eslint-react/react/prefer-destructuring-assignment -
react/prefer-read-only-props··············->@eslint-react/react/prefer-readonly-props - [Rule Migration]
react/no-access-state-in-setstate·········->@eslint-react/hooks/no-access-state-in-setstate#301 - [Rule Migration]
react/sort-comp···························->@eslint-react/react/no-unsorted-class-component-members#234
The following stylistic rules in eslint-plugin-react can be replaced by the same rules in @stylistic/eslint-plugin-jsx:
react/jsx-child-element-spacingreact/jsx-closing-bracket-locationreact/jsx-closing-tag-locationreact/jsx-curly-brace-presencereact/jsx-curly-newlinereact/jsx-curly-spacingreact/jsx-equals-spacingreact/jsx-first-prop-new-linereact/jsx-indent-propsreact/jsx-indentreact/jsx-max-props-per-linereact/jsx-newlinereact/jsx-one-expression-per-linereact/jsx-pascal-casereact/jsx-props-no-multi-spacesreact/jsx-sort-default-propsreact/jsx-sort-propsreact/jsx-space-before-closingreact/jsx-tag-spacingreact/jsx-wrap-multilines
The following correctness rules in eslint-plugin-react can be enforced by TypeScript with appropriate tsconfig.json settings:
react/jsx-no-duplicate-propsreact/jsx-no-undefreact/jsx-uses-reactreact/jsx-uses-varsreact/no-invalid-html-attributereact/no-unescaped-entities-> No need when using@typescript-eslint/parserreact/no-unknown-propertyreact/style-prop-objectreact/react-in-jsx-scopereact/require-render-return
Outdated or obsolete rules
These rules are considered outdated or obsolete. They are not going to be supported by this plugin.
react/default-props-match-prop-typesreact/forbid-foreign-prop-typesreact/forbid-prop-typesreact/no-unused-prop-typesreact/prefer-exact-propsreact/prefer-es6-classreact/prefer-stateless-functionreact/require-default-propsreact/require-optimizationreact/sort-default-propsreact/sort-prop-typesreact/state-in-constructorreact/static-property-placementreact/jsx-no-bind
rakleedhyoban, SukkaW, mcmxcdev, frantic1048 and dartess