Shared ESLint config for projects using React.
Important
Configs now require using the ESLint Flat Config format. See the migration guide for more information.
npm i -D eslint-config-cheminfo-react eslint
Create a eslint.config.mjs
file with the following contents:
import { defineConfig } from 'eslint/config';
import react from 'eslint-config-cheminfo-react';
export default defineConfig(react);
You can then customise the config for your project.
See https://github.com/cheminfo/eslint-config/tree/main?tab=readme-ov-file#typescript-and-react
This config extends our base eslint-config-cheminfo
JavaScript config.