From 664be2704dfed9b3b7333854fee9495fc67d5455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Beltr=C3=A1n=20Alarc=C3=B3n?= Date: Sun, 29 Jan 2023 14:01:00 +0100 Subject: [PATCH] chore: fix new linting errors reported --- lib/configs/index.ts | 2 +- lib/utils/types.ts | 2 +- tests/lib/rules/consistent-data-testid.test.ts | 2 +- tests/lib/rules/no-node-access.test.ts | 2 +- tests/lib/rules/no-unnecessary-act.test.ts | 2 +- tools/generate-configs/index.ts | 2 +- tools/generate-configs/utils.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/configs/index.ts b/lib/configs/index.ts index d312381b..c36314e8 100644 --- a/lib/configs/index.ts +++ b/lib/configs/index.ts @@ -1,6 +1,6 @@ import { join } from 'path'; -import type { TSESLint } from '@typescript-eslint/utils'; +import { type TSESLint } from '@typescript-eslint/utils'; import { importDefault, diff --git a/lib/utils/types.ts b/lib/utils/types.ts index eb8fb522..6701e425 100644 --- a/lib/utils/types.ts +++ b/lib/utils/types.ts @@ -1,4 +1,4 @@ -import type { TSESLint } from '@typescript-eslint/utils'; +import { type TSESLint } from '@typescript-eslint/utils'; type RecommendedConfig = | TSESLint.RuleMetaDataDocs['recommended'] diff --git a/tests/lib/rules/consistent-data-testid.test.ts b/tests/lib/rules/consistent-data-testid.test.ts index 7edaf7c6..b0f5874a 100644 --- a/tests/lib/rules/consistent-data-testid.test.ts +++ b/tests/lib/rules/consistent-data-testid.test.ts @@ -1,4 +1,4 @@ -import type { TSESLint } from '@typescript-eslint/utils'; +import { type TSESLint } from '@typescript-eslint/utils'; import rule, { MessageIds, diff --git a/tests/lib/rules/no-node-access.test.ts b/tests/lib/rules/no-node-access.test.ts index e15bc727..f3216e7e 100644 --- a/tests/lib/rules/no-node-access.test.ts +++ b/tests/lib/rules/no-node-access.test.ts @@ -1,4 +1,4 @@ -import type { TSESLint } from '@typescript-eslint/utils'; +import { type TSESLint } from '@typescript-eslint/utils'; import rule, { RULE_NAME, Options } from '../../../lib/rules/no-node-access'; import { createRuleTester } from '../test-utils'; diff --git a/tests/lib/rules/no-unnecessary-act.test.ts b/tests/lib/rules/no-unnecessary-act.test.ts index 38110fee..2f1bce65 100644 --- a/tests/lib/rules/no-unnecessary-act.test.ts +++ b/tests/lib/rules/no-unnecessary-act.test.ts @@ -1,4 +1,4 @@ -import type { TSESLint } from '@typescript-eslint/utils'; +import { type TSESLint } from '@typescript-eslint/utils'; import rule, { MessageIds, diff --git a/tools/generate-configs/index.ts b/tools/generate-configs/index.ts index 74773918..87c773c2 100644 --- a/tools/generate-configs/index.ts +++ b/tools/generate-configs/index.ts @@ -1,4 +1,4 @@ -import type { LinterConfigRules } from '../../lib/configs'; +import { type LinterConfigRules } from '../../lib/configs'; import rules from '../../lib/rules'; import { SUPPORTED_TESTING_FRAMEWORKS, diff --git a/tools/generate-configs/utils.ts b/tools/generate-configs/utils.ts index b233b56f..b58c0cf8 100644 --- a/tools/generate-configs/utils.ts +++ b/tools/generate-configs/utils.ts @@ -1,7 +1,7 @@ import { writeFileSync } from 'fs'; import { resolve } from 'path'; -import type { TSESLint } from '@typescript-eslint/utils'; +import { type TSESLint } from '@typescript-eslint/utils'; import { format, resolveConfig } from 'prettier'; const prettierConfig = resolveConfig.sync(__dirname);