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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1840 changed files with 3829 additions and 3516 deletions

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',

View file

@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AcuitySchedulingApi implements ICredentialType {
name = 'acuitySchedulingApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AcuitySchedulingOAuth2Api implements ICredentialType {
name = 'acuitySchedulingOAuth2Api';

View file

@ -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';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AffinityApi implements ICredentialType {
name = 'affinityApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AgileCrmApi implements ICredentialType {
name = 'agileCrmApi';

View file

@ -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';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class Amqp implements ICredentialType {
name = 'amqp';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -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';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AsanaOAuth2Api implements ICredentialType {
name = 'asanaOAuth2Api';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AutomizyApi implements ICredentialType {
name = 'automizyApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AutopilotApi implements ICredentialType {
name = 'autopilotApi';

View file

@ -1,6 +1,7 @@
import { Request, sign } from 'aws4';
import type { Request } from 'aws4';
import { sign } from 'aws4';
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BambooHrApi implements ICredentialType {
name = 'bambooHrApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BannerbearApi implements ICredentialType {
name = 'bannerbearApi';

View file

@ -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

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BitbucketApi implements ICredentialType {
name = 'bitbucketApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BitlyApi implements ICredentialType {
name = 'bitlyApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BitlyOAuth2Api implements ICredentialType {
name = 'bitlyOAuth2Api';

View file

@ -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

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BoxOAuth2Api implements ICredentialType {
name = 'boxOAuth2Api';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BrandfetchApi implements ICredentialType {
name = 'brandfetchApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BubbleApi implements ICredentialType {
name = 'bubbleApi';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ChargebeeApi implements ICredentialType {
name = 'chargebeeApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CircleCiApi implements ICredentialType {
name = 'circleCiApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CiscoWebexOAuth2Api implements ICredentialType {
name = 'ciscoWebexOAuth2Api';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ClearbitApi implements ICredentialType {
name = 'clearbitApi';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ClickUpOAuth2Api implements ICredentialType {
name = 'clickUpOAuth2Api';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CockpitApi implements ICredentialType {
name = 'cockpitApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CodaApi implements ICredentialType {
name = 'codaApi';

View file

@ -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 {

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ConvertKitApi implements ICredentialType {
name = 'convertKitApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CopperApi implements ICredentialType {
name = 'copperApi';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CrateDb implements ICredentialType {
name = 'crateDb';

View file

@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialType,
IHttpRequestOptions,

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DemioApi implements ICredentialType {
name = 'demioApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DhlApi implements ICredentialType {
name = 'dhlApi';

View file

@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DisqusApi implements ICredentialType {
name = 'disqusApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DriftApi implements ICredentialType {
name = 'driftApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DriftOAuth2Api implements ICredentialType {
name = 'driftOAuth2Api';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -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'];

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EgoiApi implements ICredentialType {
name = 'egoiApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ElasticSecurityApi implements ICredentialType {
name = 'elasticSecurityApi';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EmeliaApi implements ICredentialType {
name = 'emeliaApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EventbriteApi implements ICredentialType {
name = 'eventbriteApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EventbriteOAuth2Api implements ICredentialType {
name = 'eventbriteOAuth2Api';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FacebookGraphAppApi implements ICredentialType {
name = 'facebookGraphAppApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FigmaApi implements ICredentialType {
name = 'figmaApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FileMaker implements ICredentialType {
name = 'fileMaker';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FlowApi implements ICredentialType {
name = 'flowApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FormIoApi implements ICredentialType {
name = 'formIoApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FormstackApi implements ICredentialType {
name = 'formstackApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
const scopes: string[] = [];

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FreshdeskApi implements ICredentialType {
name = 'freshdeskApi';

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FreshserviceApi implements ICredentialType {
name = 'freshserviceApi';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class Ftp implements ICredentialType {
name = 'ftp';

View file

@ -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',

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GetResponseOAuth2Api implements ICredentialType {
name = 'getResponseOAuth2Api';

View file

@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GitPassword implements ICredentialType {
name = 'gitPassword';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GithubOAuth2Api implements ICredentialType {
name = 'githubOAuth2Api';

View file

@ -1,4 +1,4 @@
import {
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GitlabOAuth2Api implements ICredentialType {
name = 'gitlabOAuth2Api';

View file

@ -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',

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GoToWebinarOAuth2Api implements ICredentialType {
name = 'goToWebinarOAuth2Api';

View file

@ -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'];

View file

@ -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',

View file

@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GoogleApi implements ICredentialType {
name = 'googleApi';

View file

@ -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'];

View file

@ -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'];

View file

@ -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',

View file

@ -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',

View file

@ -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',

View file

@ -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'];

View file

@ -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',

View file

@ -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',

View file

@ -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',

View file

@ -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