refactor: Enable import/order for design-system, workflow and @n8n packages (#10847)

This commit is contained in:
Tomi Turtiainen
2024-09-18 10:19:33 +03:00
committed by GitHub
parent 5a1db6db1a
commit 4f0a1a953f
305 changed files with 746 additions and 507 deletions

View File

@@ -1,16 +1,17 @@
/* eslint-disable @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as qs from 'querystring';
import { Agent } from 'https';
import axios from 'axios';
import type { AxiosRequestConfig } from 'axios';
import { getAuthError } from './utils';
import { Agent } from 'https';
import * as qs from 'querystring';
import type { ClientOAuth2TokenData } from './ClientOAuth2Token';
import { ClientOAuth2Token } from './ClientOAuth2Token';
import { CodeFlow } from './CodeFlow';
import { CredentialsFlow } from './CredentialsFlow';
import type { Headers } from './types';
import { getAuthError } from './utils';
export interface ClientOAuth2RequestObject {
url: string;

View File

@@ -1,6 +1,6 @@
import type { ClientOAuth2, ClientOAuth2Options, ClientOAuth2RequestObject } from './ClientOAuth2';
import { auth, expects, getRequestOptions } from './utils';
import { DEFAULT_HEADERS } from './constants';
import { auth, expects, getRequestOptions } from './utils';
export interface ClientOAuth2TokenData extends Record<string, string | undefined> {
token_type?: string | undefined;

View File

@@ -1,4 +1,5 @@
import * as qs from 'querystring';
import type { ClientOAuth2, ClientOAuth2Options } from './ClientOAuth2';
import type { ClientOAuth2Token, ClientOAuth2TokenData } from './ClientOAuth2Token';
import { DEFAULT_HEADERS, DEFAULT_URL_BASE } from './constants';

View File

@@ -1,8 +1,10 @@
import nock from 'nock';
import { ClientOAuth2, ClientOAuth2Token } from '../src';
import * as config from './config';
import { AuthError } from '@/utils';
import * as config from './config';
import { ClientOAuth2, ClientOAuth2Token } from '../src';
describe('CodeFlow', () => {
beforeAll(async () => {
nock.disableNetConnect();

View File

@@ -1,8 +1,9 @@
import nock from 'nock';
import type { Headers } from '../src/types';
import * as config from './config';
import type { ClientOAuth2Options } from '../src';
import { ClientOAuth2, ClientOAuth2Token } from '../src';
import * as config from './config';
import type { Headers } from '../src/types';
describe('CredentialsFlow', () => {
beforeAll(async () => {