@mels/eslint-config-react
v1.0.0
Published
Shareable React ESLint config.
Downloads
10
Readme
✨ Features
This package contains all my React-related rules as an extensible shared ESLint config.
- React (eslint-plugin-react)
- React Hooks (eslint-plugin-react-hooks)
- JSX A11y (accessibility rules) (eslint-plugin-jsx-a11y)
- JSX runtime config (if extended with
@mels/react/jsx-runtime
)
Install
With npm:
npm install @mels/eslint-config-react --save-dev
With yarn:
yarn add @mels/eslint-config-react --dev
How To Use
// .eslintrc.js
module.exports = {
extends: ['@mels/base', '@mels/react'],
// ... rest of config
};
This package also exports a jsx-runtime
config, if you're using the new JSX transform from React 17.
// .eslintrc.js
module.exports = {
extends: ['@mels/base', '@mels/react', '@mels/react/jsx-runtime'],
// ... rest of config
};
Credits
- Toolkit logo by Creatype from www.flaticon.com
License
MIT