GitHub - js07/eslint-plugin-pipedream: ESLint plugin for Pipedream components: https://pipedream.com/docs/components/api/ · GitHub
Skip to content

About

ESLint plugin for Pipedream components: https://pipedream.com/docs/components/api/

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

35 Commits

Folders and files

Repository files navigation

eslint-plugin-pipedream

This ESLint plugin implements rules that validate the Pipedream component guidelines. Only a subset of the guidelines are mapped to rules: those that can be statically-analyzed.

For example, all components should have a name:

Component must have name error

Learn more about Pipedream at https://pipedream.com/docs, and read more about Pipedream components in the component API docs.

We will gladly accept issues and PRs in this repo.

Installation

In the repo where you manage Pipedream components, run:

npm install @pipedream/eslint-plugin-pipedream --save-dev

Then add the Pipedream plugin to the plugins section of your ESLint config file:

"plugins": [
  "pipedream"
],

Developing the plugin

When you're contributing to this plugin, first install dependencies:

npm i

You can run tests with:

npm run test

All rules are exported from index.js. Tests can be found in the tests directory. Each new rule should have associated tests.

If this is your first time creating ESLint rules, see these helpful resouces:

About

ESLint plugin for Pipedream components: https://pipedream.com/docs/components/api/

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages