@trigger.dev/eslint-plugin

2.3.19 • Public • Published

@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

Package Sidebar

Install

npm i @trigger.dev/eslint-plugin

Weekly Downloads

149

Version

2.3.19

License

MIT

Unpacked Size

27.9 kB

Total Files

10

Last publish

Collaborators

  • nicknpm
  • samejr
  • d-k-p
  • mattaitken
  • ericallam