![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@eslint-react/eslint-plugin
Advanced tools
More than 80 high-quality linting rules for writing better React code.
More than 80 high-quality linting rules for writing better React code.
@eslint-react/eslint-plugin
- The main ESLint plugin package including all rules and config presets in this repository.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.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,
],
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.
antfu/eslint-config
- Anthony's ESLint config preset.eslint-config-rebeccastevens
- Rebecca's ESLint config preset.eslint-config-sheriff
- A comprehensive and opinionated Typescript-first ESLint configuration.eslint-config-sukka
- Sukka's ESLint config preset.fullstacksjs/eslint-config
- FullstacksJS ESLint config preset.Data collected from GitHub dependents network, if there are any mismatch or outdated information, feel free to open issue or pull request.
Find more on GitHub Dependents.
Please follow our contributing guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
More than 80 high-quality linting rules for writing better React code.
The npm package @eslint-react/eslint-plugin receives a total of 120,611 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 News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.