eslint-config-cheminfo-react
v14.0.0
Published
Shared ESLint config for projects using React
Downloads
2,102
Readme
eslint-config-cheminfo-react
Shared ESLint config for projects using React.
[!IMPORTANT]
Configs now require to use the ESLint Flat Config format. See the migration guide for more information.
Installation
npm i -D eslint-config-cheminfo-react eslint
Usage
In JavaScript projects
Create a eslint.config.mjs
file with the following contents:
import react from 'eslint-config-cheminfo-react';
export default [...react];
You can then customize the config for your project.
In TypeScript projects
See https://github.com/cheminfo/eslint-config/tree/main?tab=readme-ov-file#typescript-and-react
References
This config extends our base eslint-config-cheminfo
JavaScript config.