Made with ❤️ by Trilon.io
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.
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.
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 |
Check out Trilon.io for more info!
Contact us at hello@trilon.io, and let's talk about your projects needs.