
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
@eslint-react/eslint-plugin
Advanced tools
A series of composable ESLint rules for React and friends.
A series of composable ESLint rules for React and friends.
eslint-plugin-react-x
- X Rules (renderer-agnostic, compatible with x-platform).eslint-plugin-react-dom
- DOM specific rules for React DOM.eslint-plugin-react-web-api
- Rules for interacting with Web APIs.eslint-plugin-react-hooks-extra
- Extra React Hooks rules.eslint-plugin-react-naming-convention
- Naming convention rules.@eslint-react/eslint-plugin
- Main plugin combining all rules and presets from the above packages.[!NOTE]
ESLint React requires the following minimum versions:
node@18.18.0
eslint@8.57.0
typescript@4.9.5
npm install --save-dev typescript-eslint @eslint-react/eslint-plugin
// eslint.config.js
// @ts-check
import eslintJs from "@eslint/js";
import eslintReact from "@eslint-react/eslint-plugin";
import tseslint from "typescript-eslint";
export default tseslint.config({
files: ["**/*.ts", "**/*.tsx"],
extends: [
eslintJs.configs.recommended,
tseslint.configs.recommended,
eslintReact.configs["recommended-typescript"],
],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
// Put rules you want to override here
"@eslint-react/no-class-component": "error",
},
});
core
)"react"
.dom
)"react-dom"
.web-api
)recommended
)core
, dom
, and web-api
presets.Recommended TypeScript (recommended-typescript
)
Same as the recommended
preset but disables rules that can be enforced by TypeScript.
Recommended Type-Checked (recommended-type-checked
)
Same as the recommended-typescript
preset but enables additional rules that require type information.
Contributions are welcome!
Please follow our contributing guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
v1.42.1 (2025-04-08)
core
preset to x
by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/1042The following presets have been renamed:
core
to x
core-legacy
to x-legacy
The old preset names will still be available until the next major update to avoid breaking changes.
Full Changelog: https://github.com/Rel1cx/eslint-react/compare/v1.41.0...v1.42.1
FAQs
A unified plugin that combines all individual plugins from the eslint-react monorepo into one.
The npm package @eslint-react/eslint-plugin receives a total of 237,842 weekly downloads. As such, @eslint-react/eslint-plugin popularity was classified as popular.
We found that @eslint-react/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
Research
Security News
Socket researchers uncovered malicious npm and PyPI packages that steal crypto wallet credentials using Google Analytics and Telegram for exfiltration.