eslint-plugin-react icon indicating copy to clipboard operation
eslint-plugin-react copied to clipboard

React-specific linting rules for ESLint

Results 270 eslint-plugin-react issues
Sort by recently updated
recently updated
newest added

i reopen PR on resolve issue - #2309 cause i did a lot of commits while editing. * add rule of handling destructuring of useContext in SFC * delete detecting...

resolve issue #2309 1. delete rule about variable happens to be named ``context`` 2. set rule on ``useContext`` with ``options: always`` and ``options: never`` - make ``contextSet`` to detect any...

This rule will prevent the unsafe use on `window` resulting from rendering React apps in environments where the global is not available. I'll be grateful for getting all your comments...

new rule

This is just a first step to try and solve: https://github.com/yannickcr/eslint-plugin-react/issues/1753 This is ONLY a request for code review: please do not merge. I just wanted to get feedback on...

Currently the rule `jsx-pascal-case` doesn't support some edge cases: - It improperly errors when the component is in a namespace that starts with an underscore - It improperly succeeds on...

help wanted

WIP pull request to track progress on #2218 .

example ```js { 'react/prop-types': ['warn', { ignore: ["/_path$/", "className"] }, } ``` # todo - [ ] add test

In the 16.6.0 react did be deprecation old context https://reactjs.org/blog/2018/10/23/react-v-16-6.html#deprecations-in-strictmode and remove to next major release fixes #2382