1.0.0 • Published 1 year ago
@majaco/eslint-plugin-react v1.0.0
eslint-plugin-react
Plugin of preferred ESLint rules for React projects.
This includes:
- Extension of:
eslint:recommended@typescript-eslint/recommendedreact/recommendedreact-hooksjsx-a11y/recommendedprettier
- A small set of additional rules.
Prerequisites
To use the latest version of the package, you must already have ESLint version 9 installed in your project.
While not required, for consistency it would be best to use this in conjunction with Prettier (and don't forget to include a .prettierrc JSON or equivalent configuration, even if it's empty).
Usage
Install the package:
npm i --save-dev @majaco/eslint-plugin-reactThen, import the package and include its config in your own:
// eslint.config.js
import majacoReact from "@majaco/eslint-plugin-react";
export default [
...majacoReact.configs.recommended,
{
// your local project config
}
]1.0.0
1 year ago