@coding-with-hassan/eslint-config-api
v0.1.0
Published
Shared ESLint flat config for NestJS / Node TypeScript projects.
Maintainers
Readme
@coding-with-hassan/eslint-config-api
Shared ESLint flat config for NestJS / Node TypeScript projects.
Install
pnpm add -D @coding-with-hassan/eslint-config-api eslint typescriptUse
Create eslint.config.mjs in your project root:
import config from '@coding-with-hassan/eslint-config-api';
export default config({
tsconfigRootDir: import.meta.dirname,
});Need a project-specific override? Pass an extra array of additional flat-config entries — they are appended after the base config:
import config from '@coding-with-hassan/eslint-config-api';
export default config({
tsconfigRootDir: import.meta.dirname,
extra: [
{
rules: {
'@typescript-eslint/no-floating-promises': 'error',
},
},
],
});What's in it
@eslint/jsrecommendedtypescript-eslintrecommended (type-checked)eslint-plugin-prettier(errors on prettier violations, withendOfLine: 'auto')- Node + Jest globals
- Sensible relaxations for NestJS:
no-explicit-anyoff;no-floating-promisesandno-unsafe-argumentatwarn
