An open API service indexing awesome lists of open source software.

https://github.com/trilonio/eslint-plugin

Official Trilon ESLint Plugin for NestJS
https://github.com/trilonio/eslint-plugin

Last synced: 12 months ago
JSON representation

Official Trilon ESLint Plugin for NestJS

Awesome Lists containing this project

README

          

# Trilon ESLint Plugin

[![Apache-2.0 license](https://img.shields.io/badge/license-Apache-blue.svg?style=for-the-badge&color=e51384)](/LICENSE)

---



Trilon.io - Angular Universal, NestJS, JavaScript Application Consulting Development and Training

Made with :heart: by Trilon.io

---

[![Node.js CI](https://github.com/TrilonIO/eslint-plugin/actions/workflows/node-ci.yml/badge.svg)](https://github.com/TrilonIO/eslint-plugin/actions/workflows/node-ci.yml)

At Trilon, our goal is to help elevate teams - giving them the push they need to continuously succeed in today's ever-changing tech world.

As part of that, we focus on developing tools that make **your** dev experience easier, enjoyable, and safer.

The official Trilon ESLint Plugin is part of that toolbelt to help your team to thrive, applying best practices for NestJS, curated by our key contributors and core team.

## Installation

```sh
npm install @trilon/eslint-plugin
```

And add these the plugin to your `.eslintrc`:

```js
{
plugins: ['@trilon/eslint-plugin'],
extends: ['plugin:@trilon/recommended'],
}
```

The "recommended" preset contains the rules listed below. If you need custom configuration, please refer to the documentation of the individual linting rules.

## Rules

| Rule | Description | Type |
| ------------------------------------------------------------------------------------ | -------------------------------------------------------------- | ----------- |
| [`@trilon/enforce-close-testing-module`](docs/rules/enforce-close-testing-module.md) | Ensures NestJS testing modules are closed properly after tests | Recommended ✅ |
| [`@trilon/check-inject-decorator`](docs/rules/check-inject-decorator.md) | Detects incorrect usage of `@Inject(TOKEN)` decorator | Recommended ✅ |
| [`@trilon/detect-circular-reference`](docs/rules/detect-circular-reference.md) | Detects usage of `forwardRef()` method | Recommended ✅ |
| [`@trilon/enforce-custom-provider-type`](docs/rules/enforce-custom-provider-type.md) | Enforces a styleguide for provider types | Strict ⚠️ |
---

# Trilon Consulting

## JavaScript, Node, NestJS Consulting from Open-Source Fanatics and Key Contributors!

Check out **[Trilon.io](https://Trilon.io)** for more info!

Contact us at , and let's talk about your projects needs.





Trilon.io - Angular Universal, NestJS, JavaScript Application Consulting Development and Training

Made with :heart: by Trilon.io