Skip to content

cheminfo/eslint-config-cheminfo-react

Repository files navigation

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.