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,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const clientOperations: INodeProperties[] = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
@@ -11,11 +11,11 @@ import {
import { clockifyApiRequest, clockifyApiRequestAllItems } from './GenericFunctions';
import { IClientDto, IWorkspaceDto } from './WorkpaceInterfaces';
import type { IClientDto, IWorkspaceDto } from './WorkpaceInterfaces';
import { IUserDto } from './UserDtos';
import type { IUserDto } from './UserDtos';
import { IProjectDto } from './ProjectInterfaces';
import type { IProjectDto } from './ProjectInterfaces';
import { clientFields, clientOperations } from './ClientDescription';

View File

@@ -1,7 +1,7 @@
import moment from 'moment-timezone';
import { IPollFunctions } from 'n8n-core';
import {
import type { IPollFunctions } from 'n8n-core';
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
@@ -13,8 +13,8 @@ import {
import { clockifyApiRequest } from './GenericFunctions';
import { EntryTypeEnum } from './EntryTypeEnum';
import { IUserDto } from './UserDtos';
import { IWorkspaceDto } from './WorkpaceInterfaces';
import type { IUserDto } from './UserDtos';
import type { IWorkspaceDto } from './WorkpaceInterfaces';
export class ClockifyTrigger implements INodeType {
description: INodeTypeDescription = {

View File

@@ -1,8 +1,8 @@
import { OptionsWithUri } from 'request';
import type { OptionsWithUri } from 'request';
import { IExecuteFunctions, ILoadOptionsFunctions, IPollFunctions } from 'n8n-core';
import type { IExecuteFunctions, ILoadOptionsFunctions, IPollFunctions } from 'n8n-core';
import { IDataObject } from 'n8n-workflow';
import type { IDataObject } from 'n8n-workflow';
export async function clockifyApiRequest(
this: ILoadOptionsFunctions | IPollFunctions | IExecuteFunctions,

View File

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

View File

@@ -1,4 +1,4 @@
import { IHourlyRateDto, IMembershipDto } from './CommonDtos';
import type { IHourlyRateDto, IMembershipDto } from './CommonDtos';
enum EstimateEnum {
AUTO = 'AUTO',

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
import { ITimeIntervalDto } from './CommonDtos';
import type { ITimeIntervalDto } from './CommonDtos';
interface ITimeEntriesDurationRequest {
start: string;

View File

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

View File

@@ -1,5 +1,5 @@
import { IDataObject } from 'n8n-workflow';
import { IMembershipDto } from './CommonDtos';
import type { IDataObject } from 'n8n-workflow';
import type { IMembershipDto } from './CommonDtos';
enum UserStatusEnum {
ACTIVE,

View File

@@ -1,4 +1,4 @@
import { IHourlyRateDto, IMembershipDto } from './CommonDtos';
import type { IHourlyRateDto, IMembershipDto } from './CommonDtos';
enum AdminOnlyPagesEnum {
PROJECT = 'PROJECT',

View File

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