[!NOTE] This package comprises
@zemd/eslint-ts
and adds its rules by default. However, you can import each set of rules separately.
This package includes a set of ESLint configurations for React projects.
The package includes:
Package | Description | Rules |
---|---|---|
eslint-plugin-react |
React specific linting rules |
recommended and jsx-runtime rules. Additionally manually selected rules that were not included. |
eslint-plugin-jsx-a11y |
Accessibility rules for JSX |
recommended rules. |
eslint-plugin-react-hooks |
Rules for React hooks |
recommended rules. |
eslint-plugin-react-hooks-extra |
Additional rules for React hooks |
recommended rules. |
eslint-plugin-react-web-api |
ESLint plugin for React to interact with Web APIs |
recommended rules. |
eslint-plugin-react-compiler |
React 19 specific rules. | At the moment there is only one rule exists. |
eslint-plugin-react-refresh |
Validate that your components can safely be updated with Fast Refresh. | configurable option. By default, recommended rules and additionally configuration added for vite , remix and react router 7
|
npm install --save-dev @zemd/eslint-react
// eslint.config.js
import react from "@zemd/eslint-react"; // <- this will import all rules including the @zemd/eslint-ts rules
// you can import the react rules separately
// import { react, typescript, javascript } from "@zemd/eslint-react";
export default [...react()];
// export default [...react()];
The @zemd/eslint-react
is licensed under the Apache-2.0 license.