@mbtech-nl/eslint-config
v1.0.1
Published
Shared ESLint 9 flat configuration for mbtech-nl projects
Downloads
457
Readme
@mbtech-nl/eslint-config
Shared ESLint 9 flat configuration for mbtech-nl projects. Includes TypeScript strict rules, Unicorn modern JS practices, and import ordering.
Install
pnpm add -D @mbtech-nl/eslint-config eslint typescriptUsage
eslint.config.js:
import mbtech from '@mbtech-nl/eslint-config';
export default [
...mbtech,
];To extend with project-specific rules:
import mbtech from '@mbtech-nl/eslint-config';
export default [
...mbtech,
{
rules: {
'no-console': 'off', // example override
},
},
];Included plugins
| Plugin | Purpose |
|---|---|
| @typescript-eslint | TypeScript strict + stylistic rules |
| eslint-plugin-unicorn | Modern JS best practices |
| eslint-plugin-import-x | Import ordering and cycle detection |
Rules philosophy
- TypeScript
strict-type-checked+stylistic-type-checkedas the baseline - No
any, no floating promises, consistent type imports - Modern JS:
node:protocol, novar, prefer structured clone - Test files have relaxed rules for
anyand non-null assertions
