Detalhes do pacote

eslint-plugin-nestjs-pedantic

ej-shafran2kMIT0.0.11

An ESLint plugin for NestJS, with pedantic rules

eslint, eslintplugin, javascript, typescript

readme (leia-me)

eslint-plugin-nestjs-pedantic

Nitpicky ESLint rules.

Installation

npm install -D eslint typescript-eslint eslint-plugin-nestjs-pedantic

Configuration

To use the recommended configuration:

import nestjsPedantic from "eslint-plugin-nestjs-pedantic";

export default [
  // ...
  ...nestjsPedantic.configs.recommended,
];

To turn on every rule:

import nestjsPedantic from "eslint-plugin-nestjs-pedantic";

export default [
  // ...
  ...nestjsPedantic.configs.all,
];

See more: Configuring Plugins.

Rules

💼 Configurations enabled in.\ 🌐 Set in the all configuration.\ ✅ Set in the recommended configuration.\ 🔧 Automatically fixable by the --fix CLI option.\ 💡 Manually fixable by editor suggestions.

Name Description 💼 🔧 💡
match-methods-to-routes Match method names to the decorated API routes 🌐 ✅ 🔧
no-duplicate-route-params Disallow duplicate route parameters 🌐 ✅
no-unused-route-params Disallow unused route parameters 🌐 ✅ 💡
route-convention Keep a convention when decorating routes 🌐 ✅ 🔧 💡
safe-route-params Ensure safe usage of the @Param decorator 🌐 ✅ 💡

changelog (log de mudanças)

Changelog

0.0.11

Patch Changes

  • 70527be: Bump @typescript-eslint/utils.

0.0.10

Patch Changes

  • 789541f: Make empty strings invalid for route convention.

0.0.9

Patch Changes

  • c253b0f: Fix regression with "no such file or directory".

0.0.8

Patch Changes

  • 2d3bd61: Fix "require is not defined in ES module scope".
  • bb58d64: Provide proper types for default export.

0.0.7

Patch Changes

  • 4a8f2c8: Fix "no such file or directory" error.
  • c176e19: Add type declarations to package.

0.0.6

Patch Changes

  • be93c57: Update CHANGELOG format.

0.0.5

Patch Changes

  • 8688197: Update to use ESLint v9.