NestJS
Package: @santi020k/eslint-config-nest
Use the NestJS package for server-side TypeScript apps that want the shared rules plus Nest-oriented linting.
Install
bash
npm install -D @santi020k/eslint-config-nestConfigure
js
import { eslintConfig } from '@santi020k/eslint-config-basic'
import nest from '@santi020k/eslint-config-nest'
export default eslintConfig({
typescript: true,
frameworks: {
nest
}
})What It Adds
- NestJS-focused rules on top of the core and TypeScript packages.
- A modular server-side framework package that does not affect front-end projects.
- A composition path that still works with presets and other optional tooling.
Notes
- NestJS projects usually work well with
runtime: Runtime.Nodeorpreset: Preset.Node. - The framework package remains explicit, even when NestJS is detected from
package.json.
Repository Links
- Source Package: packages/nest
- Playground: packages/playground/nest