Shared ESLint config for TypeScript projects.
Important
Configs now require to use the ESLint Flat Config format. See the migration guide for more information.
npm i -D eslint-config-cheminfo-typescript eslint
Create a eslint.config.mjs
file with the following contents:
import cheminfo from 'eslint-config-cheminfo-typescript';
export default [...cheminfo];
You can then customize the config for your project.
This package exports three separate configurations:
eslint-config-cheminfo-typescript/base
: The base config with most rules. At least this config should be used in all TypeScript projects.eslint-config-cheminfo-typescript/jsdoc
: Rules from the jsdoc plugin to help improve the documentation of our libraries.eslint-config-cheminfo-typescript/unicorn
: Additional opinionated rules selected from the unicorn plugin.
The default export from eslint-config-cheminfo-typescript
combines all of them.
This config extends our eslint-config-cheminfo
JavaScript config.