1.0.0 • Published 3 days ago

@zemd/eslint-react v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 days ago

@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:

PackageDescriptionRules
eslint-plugin-reactReact specific linting rulesrecommended and jsx-runtime rules. Additionally manually selected rules that were not included.
eslint-plugin-jsx-a11yAccessibility rules for JSXrecommended rules.
eslint-plugin-react-hooksRules for React hooksrecommended rules.
eslint-plugin-react-hooks-extraAdditional rules for React hooksrecommended rules.
eslint-plugin-react-web-apiESLint plugin for React to interact with Web APIsrecommended rules.
eslint-plugin-react-compilerReact 19 specific rules.At the moment there is only one rule exists.
eslint-plugin-react-refreshValidate 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

npm.io