@zemd/eslint-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@zemd/eslint-react

npm

[!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

Installation

npm install --save-dev @zemd/eslint-react

Usage

// 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()];

License

The @zemd/eslint-react is licensed under the Apache-2.0 license.

Donate

Package Sidebar

Install

npm i @zemd/eslint-react

Weekly Downloads

70

Version

1.0.0

License

Apache-2.0

Unpacked Size

24.2 kB

Total Files

7

Last publish

Collaborators

  • hunterman