2.3.19-beta.0 • Published 11 months ago

@systemfsoftware/trigger.dev_eslint-plugin v2.3.19-beta.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

@systemfsoftware/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 @systemfsoftware/trigger.dev_eslint-plugin:

npm install @systemfsoftware/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

NameDescription
no-duplicated-task-keysPrevent duplicated task keys on trigger.dev jobs