Files
triggerdotdev--trigger.dev/packages/eslint-plugin
github-actions[bot] daae6df428 chore: Update version for release (#794)
* chore: Update version for release

* Update lockfile

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: nicktrn <55853254+nicktrn@users.noreply.github.com>
2023-12-13 10:23:36 +00:00
..

@trigger.dev/eslint-plugin

ESLint plugin with trigger.dev best practices

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @trigger.dev/eslint-plugin:

npm install @trigger.dev/eslint-plugin --save-dev

Usage

Add trigger-dev to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "trigger-dev"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "trigger-dev/rule-name": 2
    }
}

Rules

Name Description
no-duplicated-task-keys Prevent duplicated task keys on trigger.dev jobs