@trilon/eslint-plugin
v0.2.1
Published
Official Trilon Eslint Plugin
Downloads
1,015
Readme
Trilon ESLint Plugin
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 [email protected], and let's talk about your projects needs.