eslint-plugin-ras8928-nestjs
v1.0.5
Published
ESLint plugin for enforcing specific code style rules in NestJS applications, including alphabetical sorting of constructor parameters and module metadata.
Maintainers
Readme
ras8928-eslint-nestjs
ESLint rules for NestJS applications, enforcing best practices and consistent code style.
Installation
YouInstall the package:
npm install --save-dev eslint-plugin-ras8928-nestjs
# or
yarn add --dev eslint-plugin-ras8928-nestjsUsage
Add eslint-plugin-ras8928-nestjs to the plugins array in your eslint.config.mjs file. Then configure the rules you want to use under the rules section.
Example eslint.config.mjs (minimal):
import eslintPluginRas8928Nestjs from "eslint-plugin-ras8928-nestjs";
export default [
{
plugins: {
"ras8928-nestjs": eslintPluginRas8928Nestjs,
},
rules: {
"ras8928-nestjs/module-metadata-alphabetical": "warn",
"ras8928-nestjs/constructor-params-alphabetical": "warn",
},
},
];