
Security Fundamentals
Obfuscation 101: Unmasking the Tricks Behind Malicious Code
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
@eslint-react/eslint-plugin
Advanced tools
More than 80 high-quality linting rules to identify possible problems in your React 19 code.
More than 80 high-quality linting rules to identify possible problems in your React 19 code.
eslint-plugin-react-x
- Core 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
- All rules and config presets from the above plugins.[!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,
},
},
rules: {
// Put rules you want to override here
"@eslint-react/prefer-shorthand-boolean": "warn",
},
});
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.
Please follow our contributing guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
v1.37.3 (2025-03-22)
ts-api-utils
does not provide an export named unionConstituents
, closes #1009 by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/1010Full Changelog: https://github.com/Rel1cx/eslint-react/compare/v1.37.2...v1.37.3
FAQs
A series of composable ESLint Plugins for libraries and frameworks that use React as a UI runtime.
The npm package @eslint-react/eslint-plugin receives a total of 207,547 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.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.