https://github.com/unjs/eslint-config
✅ Shared ESLint config for unjs repositories
https://github.com/unjs/eslint-config
Last synced: 7 months ago
JSON representation
✅ Shared ESLint config for unjs repositories
- Host: GitHub
- URL: https://github.com/unjs/eslint-config
- Owner: unjs
- Created: 2022-11-14T12:50:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-02T23:34:07.000Z (about 1 year ago)
- Last Synced: 2025-06-03T05:43:21.666Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 340 KB
- Stars: 48
- Watchers: 2
- Forks: 4
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# `eslint-config-unjs`
Sharable ESLint config preset for usage across unjs repositories.
✅ Includes:
- [eslint recommended rules](https://eslint.org/docs/latest/rules/)
- [uniciorn rules ](https://github.com/sindresorhus/eslint-plugin-unicorn)
- [typescript-eslint integration](https://typescript-eslint.io/)
- [markdown plugin](https://www.npmjs.com/package/eslint-plugin-markdown)
## Getting started
> [!NOTE]
> This preset uses the new [ESLint flat config](https://eslint.org/docs/latest/use/configure/configuration-files).
Install dependencies:
```sh
npx nypm install -D eslint typescript eslint-config-unjs
```
Create `eslint.config.mjs` in your project root:
```js
import unjs from "eslint-config-unjs";
export default unjs({
ignores: [
// ignore paths
],
rules: {
// rule overrides
},
markdown: {
rules: {
// markdown rule overrides
},
},
});
```
**Tips:**
- You can pass any number of flat configs to unjs preset wrapper
- Types for `rules` are auto generated using [`antfu/eslint-typegen`](https://github.com/antfu/eslint-typegen).
## License
MIT