@chatondearu/eslint-config
v0.3.1
Published
Custom ESLint flat config based on antfu
Maintainers
Readme
eslint-config
This project extends the excellent flat ESLint config from @antfu/eslint-config with a small set of defaults used in my projects.
Install
pnpm add -D @chatondearu/eslint-config @antfu/eslint-config eslint eslint-plugin-formatPeer dependencies
Install compatible peers in your project:
@antfu/eslint-config^9.0.0eslint^9.10.0or^10.0.0eslint-plugin-format>=0.1.0(required whenformatters: true)
For pnpm workspaces, Antfu v9 also expects these root settings in pnpm-workspace.yaml:
shellEmulator: true
trustPolicy: no-downgradeUsage
Usage is intentionally close to @antfu/eslint-config.
Defaults enabled by this wrapper
This wrapper enables these options by default:
typescript: trueformatters: truepnpm: true
You can override any of them in your project config:
import cda from '@chatondearu/eslint-config'
export default cda({
typescript: false,
formatters: false,
pnpm: false,
})Create an eslint.config.js file at the root of your project:
import cda from '@chatondearu/eslint-config'
export default cda({
unocss: true,
// ...
})Nuxt
To use with Nuxt:
import cda from '@chatondearu/eslint-config'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
cda(),
)Releasing
CI runs on every push/PR to main. npm publishes are automated when a v* tag is pushed (trusted publisher / OIDC).
See .github/RELEASING.md for npm and GitHub setup, then:
pnpm releaseLicense
MIT License © ChatonDeAru
