@apenhet/eslint-config
v3.0.4
Published
This is a shared ESlint config for åpenhet's projects.
Readme
ESlint
This is a shared ESlint config for åpenhet's projects.
Setup
// eslint.config.mjs
import config from '@apenhet/eslint-config'
export default configOxlint hybrid (optional, recommended)
This config supports an oxlint correctness layer — oxlint catches correctness/suspicious/perf issues in ~50ms, ESLint handles stylistic + Vue + Tailwind. Rules covered by oxlint are auto-disabled in ESLint via buildFromOxlintConfigFile, so there is no double-reporting.
The package ships its own .oxlintrc.json, so the ESLint side picks it up automatically. To enable the oxlint CLI, drop a 4-line stub at your project root that extends ours (oxlint doesn't support shared-config resolution, only file paths):
{
"extends": ["./node_modules/@apenhet/eslint-config/.oxlintrc.json"]
}Then wire your scripts:
"scripts": {
"lint": "oxlint && eslint . --cache",
"lint:fix": "oxlint --fix && eslint . --fix --cache"
}Without the stub, the oxlint CLI runs with its own defaults; the ESLint side still falls back to the package's shipped config.
