ESLint flat config preset for unjs projects, currently at v0.6.2. It integrates eslint recommended rules, eslint-plugin-unicorn, typescript-eslint, and eslint-plugin-markdown. This package is designed exclusively for ESLint's new flat config system (ESLint v9+). It provides a single exported function that accepts options for ignoring paths, overriding rules, and customizing markdown-specific rules. The package ships TypeScript types and is actively maintained with frequent dependency updates. Key differentiators include its tailored rule set for the unjs ecosystem and support for type-generated rule configurations via eslint-typegen.
npm install eslint-config-unjsVerified import paths — ran on the pinned version, not inferred.
Creates an ESLint flat config using unjs preset with custom ignores, rule overrides, and markdown-specific overrides.
Migrate to flat config: use eslint.config.mjs and call import unjs from 'eslint-config-unjs'.
Upgrade ESLint to v9 and rewrite config as flat config.
Review unicorn plugin updates and adjust rules accordingly.
Spread the result if merging with other configs: export default [ ...unjs(...), ...otherConfigs ];
Install @antfu/eslint-typegen and run it to generate rule types.
Run npm install -D eslint-config-unjs and use import (ESM) instead of require.
Migrate to flat config (eslint.config.mjs) and use import unjs from 'eslint-config-unjs'.
Rename file to .mjs or add "type": "module" in package.json.