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 529ad72b051478fa1633aaf84b2864f2fdc7613c.

* 👕 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

View File

@@ -1,8 +1,9 @@
import { OptionsWithUri } from 'request';
import type { OptionsWithUri } from 'request';
import { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions } from 'n8n-core';
import type { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions } from 'n8n-core';
import { IDataObject, NodeApiError } from 'n8n-workflow';
import type { IDataObject } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
export type Context = IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions;

View File

@@ -1,4 +1,5 @@
import { INodeTypeBaseDescription, IVersionedNodeType, VersionedNodeType } from 'n8n-workflow';
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
import { VersionedNodeType } from 'n8n-workflow';
import { TodoistV1 } from './v1/TodoistV1.node';
import { TodoistV2 } from './v2/TodoistV2.node';

View File

@@ -1,10 +1,7 @@
import { IDataObject, jsonParse } from 'n8n-workflow';
import {
Context,
FormatDueDatetime,
todoistApiRequest,
todoistSyncRequest,
} from '../GenericFunctions';
import type { IDataObject } from 'n8n-workflow';
import { jsonParse } from 'n8n-workflow';
import type { Context } from '../GenericFunctions';
import { FormatDueDatetime, todoistApiRequest, todoistSyncRequest } from '../GenericFunctions';
import type { Section, TodoistResponse } from './Service';
import { v4 as uuid } from 'uuid';

View File

@@ -10,8 +10,8 @@ import {
UpdateHandler,
} from './OperationHandler';
import { Context } from '../GenericFunctions';
import { IDataObject } from 'n8n-workflow';
import type { Context } from '../GenericFunctions';
import type { IDataObject } from 'n8n-workflow';
export class TodoistService implements Service {
async execute(

View File

@@ -1,7 +1,7 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,

View File

@@ -1,10 +1,7 @@
import { IDataObject, jsonParse } from 'n8n-workflow';
import {
Context,
FormatDueDatetime,
todoistApiRequest,
todoistSyncRequest,
} from '../GenericFunctions';
import type { IDataObject } from 'n8n-workflow';
import { jsonParse } from 'n8n-workflow';
import type { Context } from '../GenericFunctions';
import { FormatDueDatetime, todoistApiRequest, todoistSyncRequest } from '../GenericFunctions';
import type { Section, TodoistResponse } from './Service';
import { v4 as uuid } from 'uuid';

View File

@@ -10,8 +10,8 @@ import {
UpdateHandler,
} from './OperationHandler';
import { Context } from '../GenericFunctions';
import { IDataObject } from 'n8n-workflow';
import type { Context } from '../GenericFunctions';
import type { IDataObject } from 'n8n-workflow';
export class TodoistService implements Service {
async execute(

View File

@@ -1,7 +1,7 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,