Sharable ESLint config preset for usage across unjs repositories.
✅ Includes:
Note
This preset uses the new ESLint flat config.
Install dependencies:
npx nypm install -D eslint typescript eslint-config-unjs
Create eslint.config.mjs
in your project root:
import unjs from "eslint-config-unjs";
export default unjs({
ignores: [],
rules: {},
markdown: { rules: {} },
});
Tips:
- You can pass any number of flat configs to unjs preset wrapper
- Types for
rules
are auto generated usingantfu/eslint-typegen
.
MIT