refactor: Integrate consistent-type-imports in nodes-base (no-changelog) (#5267)

* 👕 Enable `consistent-type-imports` for nodes-base

* 👕 Apply to nodes-base

*  Undo unrelated changes

* 🚚 Move to `.eslintrc.js` in nodes-base

*  Revert "Enable `consistent-type-imports` for nodes-base"

This reverts commit 529ad72b05.

* 👕 Fix severity
This commit is contained in:
Iván Ovejero
2023-01-27 12:22:44 +01:00
committed by GitHub
parent 845f0f9d20
commit b03e358a12
1840 changed files with 3829 additions and 3516 deletions
+2
View File
@@ -9,6 +9,8 @@ module.exports = {
...sharedOptions(__dirname),
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
// TODO: remove all the following rules
eqeqeq: 'off',
'id-denylist': 'off',
@@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AcuitySchedulingApi implements ICredentialType {
name = 'acuitySchedulingApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AcuitySchedulingOAuth2Api implements ICredentialType {
name = 'acuitySchedulingOAuth2Api';
@@ -1,4 +1,4 @@
import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
export class AdaloApi implements ICredentialType {
name = 'adaloApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AffinityApi implements ICredentialType {
name = 'affinityApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AgileCrmApi implements ICredentialType {
name = 'agileCrmApi';
@@ -1,4 +1,4 @@
import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
export class AirtableApi implements ICredentialType {
name = 'airtableApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class Amqp implements ICredentialType {
name = 'amqp';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
export class AsanaApi implements ICredentialType {
name = 'asanaApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AsanaOAuth2Api implements ICredentialType {
name = 'asanaOAuth2Api';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AutomizyApi implements ICredentialType {
name = 'automizyApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AutopilotApi implements ICredentialType {
name = 'autopilotApi';
@@ -1,6 +1,7 @@
import { Request, sign } from 'aws4';
import type { Request } from 'aws4';
import { sign } from 'aws4';
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BambooHrApi implements ICredentialType {
name = 'bambooHrApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BannerbearApi implements ICredentialType {
name = 'bannerbearApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
// https://api.baserow.io/api/redoc/#section/Authentication
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BitbucketApi implements ICredentialType {
name = 'bitbucketApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BitlyApi implements ICredentialType {
name = 'bitlyApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BitlyOAuth2Api implements ICredentialType {
name = 'bitlyOAuth2Api';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
// https://bitwarden.com/help/article/public-api/#authentication
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BoxOAuth2Api implements ICredentialType {
name = 'boxOAuth2Api';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BrandfetchApi implements ICredentialType {
name = 'brandfetchApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BubbleApi implements ICredentialType {
name = 'bubbleApi';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ChargebeeApi implements ICredentialType {
name = 'chargebeeApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CircleCiApi implements ICredentialType {
name = 'circleCiApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CiscoWebexOAuth2Api implements ICredentialType {
name = 'ciscoWebexOAuth2Api';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ClearbitApi implements ICredentialType {
name = 'clearbitApi';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ClickUpOAuth2Api implements ICredentialType {
name = 'clickUpOAuth2Api';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CockpitApi implements ICredentialType {
name = 'cockpitApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CodaApi implements ICredentialType {
name = 'codaApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
//https://www.contentful.com/developers/docs/references/authentication/
export class ContentfulApi implements ICredentialType {
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ConvertKitApi implements ICredentialType {
name = 'convertKitApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CopperApi implements ICredentialType {
name = 'copperApi';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CrateDb implements ICredentialType {
name = 'crateDb';
@@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialType,
IHttpRequestOptions,
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DemioApi implements ICredentialType {
name = 'demioApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DhlApi implements ICredentialType {
name = 'dhlApi';
@@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DisqusApi implements ICredentialType {
name = 'disqusApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DriftApi implements ICredentialType {
name = 'driftApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DriftOAuth2Api implements ICredentialType {
name = 'driftOAuth2Api';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = ['files.content.write', 'files.content.read', 'sharing.read', 'account_info.read'];
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EgoiApi implements ICredentialType {
name = 'egoiApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ElasticSecurityApi implements ICredentialType {
name = 'elasticSecurityApi';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EmeliaApi implements ICredentialType {
name = 'emeliaApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EventbriteApi implements ICredentialType {
name = 'eventbriteApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EventbriteOAuth2Api implements ICredentialType {
name = 'eventbriteOAuth2Api';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FacebookGraphAppApi implements ICredentialType {
name = 'facebookGraphAppApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FigmaApi implements ICredentialType {
name = 'figmaApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FileMaker implements ICredentialType {
name = 'fileMaker';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FlowApi implements ICredentialType {
name = 'flowApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FormIoApi implements ICredentialType {
name = 'formIoApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FormstackApi implements ICredentialType {
name = 'formstackApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes: string[] = [];
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FreshdeskApi implements ICredentialType {
name = 'freshdeskApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FreshserviceApi implements ICredentialType {
name = 'freshserviceApi';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class Ftp implements ICredentialType {
name = 'ftp';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/admin.directory.group',
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GetResponseOAuth2Api implements ICredentialType {
name = 'getResponseOAuth2Api';
@@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GitPassword implements ICredentialType {
name = 'gitPassword';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GithubOAuth2Api implements ICredentialType {
name = 'githubOAuth2Api';
@@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GitlabOAuth2Api implements ICredentialType {
name = 'gitlabOAuth2Api';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/gmail.labels',
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GoToWebinarOAuth2Api implements ICredentialType {
name = 'goToWebinarOAuth2Api';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = ['https://www.googleapis.com/auth/adwords'];
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/analytics',
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GoogleApi implements ICredentialType {
name = 'googleApi';
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = ['https://www.googleapis.com/auth/bigquery'];
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = ['https://www.googleapis.com/auth/books'];
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/calendar',
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/cloud-language',
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/cloud-platform',
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = ['https://www.googleapis.com/auth/contacts'];
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/documents',
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/drive',
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/datastore',
@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/userinfo.email',

Some files were not shown because too many files have changed in this diff Show More