eslint-plugin-react
has a large footprint, lighter alternatives exist.
Not a drop-in replacement but a feature rich alternative with many of the same rules.
The following stylistic rules in eslint-plugin-react
can be replaced by the same rules in @stylistic/eslint-plugin-jsx
:
react/jsx-child-element-spacing
react/jsx-closing-bracket-location
react/jsx-closing-tag-location
react/jsx-curly-brace-presence
react/jsx-curly-newline
react/jsx-curly-spacing
react/jsx-equals-spacing
react/jsx-first-prop-new-line
react/jsx-indent-props
react/jsx-indent
react/jsx-max-props-per-line
react/jsx-newline
react/jsx-one-expression-per-line
react/jsx-pascal-case
react/jsx-props-no-multi-spaces
react/jsx-sort-default-props
react/jsx-sort-props
react/jsx-space-before-closing
react/jsx-tag-spacing
react/jsx-wrap-multilines