eslint-plugin-react
eslint-plugin-react copied to clipboard
React-specific linting rules for ESLint
BREAKING CHANGE: Requires ESLint@^8.57.0 || ^9.0.0
This rule is well thought out and has helped enforce consistency in many codebases. However, there was one area that concerned me, so I created this issue. ### Summary When...
### Is there an existing issue for this? - [x] I have searched the existing issues and my issue is unique - [x] My issue appears in the command-line and...
### Is there an existing issue for this? - [x] I have searched the existing issues and my issue is unique - [x] My issue appears in the command-line and...
Add `disallowedValues` for disallowing only certain values for certain props Discussion: https://github.com/jsx-eslint/eslint-plugin-react/issues/3876
React 19 sees [the dropping of `propTypes` and `defaultProps` for function components](https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-proptypes-and-defaultprops). The change to `defaultProps` is of particular interest because it has a runtime impact (ignoring any caveats/special cases...
### Is there an existing issue for this? - [x] I have searched the existing issues and my issue is unique - [x] My issue appears in the command-line and...
## Description: I would like to propose a new rule for `eslint-plugin-react` that enforces the presence of JSX elements in files with a `.tsx` extension. This rule would help maintain...
Something went wrong. This is likely an internal error of `eslint-remote-tester-run-action`. Click to expand ``` Error: Missing eslint-remote-tester. Expected it to be available at /home/ubuntu/.cache/act/a783f8d3c5a8c345/hostexecutor/node_modules/.bin/eslint-remote-tester at runTester (/index.js:5919:11) at /index.js:5988:61...
### Is there an existing issue for this? - [x] I have searched the existing issues and my issue is unique - [x] My issue appears in the command-line and...