Shared ESLint configuration for cheminfo and ml.js projects. Current stable version is 18.0.0, released April 2026. It requires ESLint ^9.39.1 and uses the flat config format only. The config bundles rules from eslint-plugin-jsdoc, eslint-plugin-unicorn, and eslint-plugin-vitest into multiple sub-configs: base, jsdoc, unicorn, and vitest. The default export combines them all. Breaking changes in recent major versions include enabling new unicorn rules, adding import order and type-only checks, and updating ESLint and plugin peer dependencies. Unlike generic ESLint configs, this is tightly scoped to the cheminfo ecosystem with opinionated rules for chemistry and machine learning JavaScript libraries.
npm install eslint-config-cheminfoVerified import paths — ran on the pinned version, not inferred.
Shows how to use the default config with flat config format and defineConfig helper. Requires ESLint ^9.39.1.
Update ESLint to ^9.39.1 and migrate to flat config if not already done. See MIGRATION.md.
Migrate from .eslintrc to eslint.config.mjs. Use default import instead of require().
Review the newly enabled unicorn rules in CHANGELOG and fix or disable them as needed.
Use eslint.config.mjs with the default export from 'eslint-config-cheminfo'.
Use subpath imports: import base from 'eslint-config-cheminfo/base'.
Change your eslint.config.js to .mjs extension and use import: `import cheminfo from 'eslint-config-cheminfo'`. Or use dynamic import.
Ensure you are using ESLint ^9.39.1 and a flat config file (eslint.config.mjs). Check that your Node version supports ES modules (>=12).
Remove the 'extends' field from .eslintrc and create an eslint.config.mjs file following the quickstart.