Skip to content

TrilonIO/eslint-plugin

Repository files navigation

Trilon ESLint Plugin

Apache-2.0 license


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

Made with ❤️ by Trilon.io


Node.js CI

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

npm install @trilon/eslint-plugin

And add these the plugin to your .eslintrc:

{
  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 Ensures NestJS testing modules are closed properly after tests Recommended ✅
@trilon/check-inject-decorator Detects incorrect usage of @Inject(TOKEN) decorator Recommended ✅
@trilon/detect-circular-reference Detects usage of forwardRef() method Recommended ✅
@trilon/enforce-custom-provider-type Enforces a styleguide for provider types Strict ⚠️

Trilon Consulting

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

Check out Trilon.io for more info!

Contact us at hello@trilon.io, and let's talk about your projects needs.



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

Made with ❤️ by Trilon.io