0.8.0 • Published 3 months ago

eslint-config-nestjs v0.8.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

eslint-config-nestjs

This package is extracted from nestjs/typescript-starter. Its aim is to reduce the number of "direct" dependencies in your package.json file and keep your .eslintrc.js file clean.

Installation

To use this package in your project, you can install it via npm:

npm i -D eslint-config-nestjs

Usage

After installing the eslint-config-nestjs package, you can configure your .eslintrc.js file to use it as follows:

module.exports = {
  extends: 'nestjs'
}

This will extend the eslint-config-nestjs configuration, which includes all of the necessary ESLint plugins and rules for NestJS projects. You can customize the configuration by adding additional rules or overrides as needed.

For example, to override a rule, you can add a rules object to your .eslintrc.js file:

module.exports = {
  extends: 'nestjs',
  rules: {
    'no-console': 'off'
  }
}

Removing Direct Dependencies

Since eslint-config-nestjs includes all of the necessary ESLint plugins and rules for NestJS projects, you can remove the direct dependencies from your package.json file.

To remove the direct dependencies, you can run the following command in your terminal:

npm uninstall @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier eslint-plugin-prettier prettier

This will remove the following packages from your project:

  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • eslint-config-prettier
  • eslint-plugin-prettier
  • prettier
0.8.0

3 months ago

0.7.4

5 months ago

0.7.3

9 months ago

0.7.2

9 months ago

0.7.1

9 months ago

0.7.0

10 months ago

0.5.2

11 months ago

0.6.0

11 months ago

0.5.1

11 months ago

0.5.0

11 months ago

0.4.1

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.4.0

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.1.0

2 years ago

0.2.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago