Giter VIP home page Giter VIP logo

eslint-plugin-n8n-nodes-base's People

Contributors

ivov avatar joffcom avatar netroy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

eslint-plugin-n8n-nodes-base's Issues

Adjustments from nodes-base/credentials

  1. Do not flag dotted or hyphenated strings:
name: 'api.jotform.com',
name: 'api.eu.mailgun.net',
name: 'scram-sha-256',
  1. Do not add period to PEM key example:
description: 'Use the multiline editor. Make sure it is in standard PEM key format:-----BEGIN PRIVATE KEY-----KEY DATA GOES HERE-----END PRIVATE KEY-----.',
  1. Omit default check for hidden param type:
{
	displayName: 'Auth URI Query Parameters',
	name: 'authQueryParameters',
	type: 'hidden',
	default: `user_scope=${userScopes.join(' ')}`,
},
  1. Omit unneeded backticks check for multiline strings:
{
	displayName: 'Access Token',
	name: 'accessToken',
	type: 'string',
	default: '',
	description: `The access token must have the following scopes:
	<ul>
		<li>Create/modify webhooks</li>
		<li>View webhooks</li>
		<li>View surveys</li>
		<li>View collectors</li>
		<li>View responses</li>
		<li>View response details</li>
	</ul>`,
},

[feature request] COMMUNITY_PACKAGE_JSON as a parameter

Currently it is only a static structure. It would be great if you could also set these as parameters for the individual rules.
As an example:

  • community-package-json-author-email-still-default
  • community-package-json-author-name-still-default

Publish to npm on GitHub release

name: Publish to npm

on:
  release:
    types: [created]

jobs:
  build:
    runs-on: ubuntu-latest
    
    steps:
      - name: Check out commit
        uses: actions/checkout@v3
     
      - name: Set up Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 16
          registry-url: https://registry.npmjs.org

      - name: Install, build, publish
        run: |
          npm ci
          npm run build
          npm publish
        env:
          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Fix unneeded backticks autofix

description: `Seatable server's timezone`

is being autofixed to:

description: 'Seatable server's timezone'

Switch to double quotes or escape single quote.

Fix negative number handling in `node-param-default-missing`

From Jan:

It looks like the linting rule: "node-param-default-missing" complains when there is a parameter of type "number" with the default value of -1 . There seems also to be a problem with the autofix which then adds the value "0" so the string zero

Fix autofix edge cases in `/nodes-base/nodes` - Part 1

From ActionNetwork to Clearbit (not inclusive)

  • Fix indentation insertion for noDataExpression, typeOptions, options, description
  • Fix handling of escaped quote inside single-quoted string
  • Fix handling of escaped quote inside backticks-quoted string
  • Tolerate absence of subtitle in trigger node description
  • Do not expect subtitle if node has no resource and no operation
  • Remove The operation to perform
  • Remove The resource to operate on
  • For options whose value is not a string, set a default of that non-string type.
  • For options pointing to a var, do not check the default.
  • Do not capitalize an id that is part of a word, e.g. Unique identifier
  • Categorize the rule adding suffix to credentials.name in node description as non-safe.
  • Disable autofix from rule expecting Additional Fields in top-level fixed collection.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.