Skip to content

Commit

Permalink
docs: mention @stylistic/eslint-plugin-jsx in eslint-plugin-react
Browse files Browse the repository at this point in the history
… alternatives (#190)
  • Loading branch information
rEl1cx authored Dec 20, 2024
1 parent 4d372d0 commit 5ed7275
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion docs/modules/eslint-plugin-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,35 @@

## `@eslint-react/eslint-plugin`

Feature rich alternative with many of the same rules.
Not a drop-in replacement but a feature rich alternative with many of the same rules.

[Project Page](https://github.com/Rel1cx/eslint-react)
[npm](https://www.npmjs.com/package/@eslint-react/eslint-plugin)

## `@stylistic/eslint-plugin-jsx`

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`

[Project Page](https://eslint.style/packages/jsx)
[npm](https://www.npmjs.com/package/@stylistic/eslint-plugin-jsx)

0 comments on commit 5ed7275

Please sign in to comment.