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,14 +1,15 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { OptionsWithUri } from 'request';
import type { OptionsWithUri } from 'request';
import { IDataObject, ILoadOptionsFunctions, IPollFunctions, NodeApiError } from 'n8n-workflow';
import type { IDataObject, ILoadOptionsFunctions, IPollFunctions } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import { TDtableMetadataColumns, TDtableViewColumns, TEndpointVariableName } from './types';
import type { TDtableMetadataColumns, TDtableViewColumns, TEndpointVariableName } from './types';
import { schema } from './Schema';
import {
import type {
ICredential,
ICtx,
IDtableMetadataColumn,

View File

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

View File

@@ -1,4 +1,4 @@
import { TColumnType, TDateTimeFormat, TInheritColumnKey } from './types';
import type { TColumnType, TDateTimeFormat, TInheritColumnKey } from './types';
export type ColumnType = keyof typeof schema.columnTypes;

View File

@@ -1,14 +1,14 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import {
getTableColumns,
@@ -24,9 +24,9 @@ import {
import { rowFields, rowOperations } from './RowDescription';
import { TColumnsUiValues, TColumnValue } from './types';
import type { TColumnsUiValues, TColumnValue } from './types';
import { ICtx, IRow, IRowObject } from './Interfaces';
import type { ICtx, IRow, IRowObject } from './Interfaces';
export class SeaTable implements INodeType {
description: INodeTypeDescription = {

View File

@@ -1,6 +1,6 @@
import { IPollFunctions } from 'n8n-core';
import type { IPollFunctions } from 'n8n-core';
import {
import type {
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
@@ -10,7 +10,7 @@ import {
import { getColumns, rowFormatColumns, seaTableApiRequest, simplify } from './GenericFunctions';
import { ICtx, IRow, IRowResponse } from './Interfaces';
import type { ICtx, IRow, IRowResponse } from './Interfaces';
import moment from 'moment';

View File

@@ -9,8 +9,8 @@ type TSeaTableServerEdition = 'enterprise edition';
// dtable
// ----------------------------------
import { IDtableMetadataColumn, IDtableMetadataTable, TDtableViewColumn } from './Interfaces';
import { ICredentialDataDecryptedObject } from 'n8n-workflow';
import type { IDtableMetadataColumn, IDtableMetadataTable, TDtableViewColumn } from './Interfaces';
import type { ICredentialDataDecryptedObject } from 'n8n-workflow';
type TInheritColumnTypeTime = 'ctime' | 'mtime';
type TInheritColumnTypeUser = 'creator' | 'last-modifier';