eslint-config-cheminfo-typescript
v15.0.1
Published
Shared ESLint config for TypeScript projects
Downloads
4,309
Readme
eslint-config-cheminfo-typescript
Shared ESLint config for TypeScript projects.
[!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-typescript eslint@^8.57.0
Usage
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.
Exported configurations
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.
References
This config extends our eslint-config-cheminfo
JavaScript config.