From 6e5344e2d652fe685ea3a960e5a03178cfee91ef Mon Sep 17 00:00:00 2001 From: rrd108 Date: Thu, 19 Sep 2024 18:12:39 +0200 Subject: [PATCH] fix lint errors --- src/rulesCheck.ts | 1 - src/rulesReport.ts | 1 - src/types/Config.ts | 22 +++++++++++----------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/rulesCheck.ts b/src/rulesCheck.ts index 9e0c7c3b..9eedf91e 100644 --- a/src/rulesCheck.ts +++ b/src/rulesCheck.ts @@ -1,5 +1,4 @@ import type { SFCDescriptor } from '@vue/compiler-sfc' -import type { OverrideConfig } from './types/Override' import { getIsNuxt } from './context' import { checkApiWithoutMethod, checkBigVif, checkBigVshow, checkComplicatedConditions, checkComputedSideEffects, checkCyclomaticComplexity, checkDeepIndentation, checkElseCondition, checkFunctionSize, checkHtmlImageElements, checkHtmlLink, checkIfWithoutCurlyBraces, checkMagicNumbers, checkNestedTernary, checkNoInlineStyles, checkNoPropDestructure, checkNoVarDeclaration, checkParameterCount, checkPlainScript, checkPropsDrilling, checkScriptLength, checkShortVariableName, checkTooManyProps, checkVForWithIndexKey, checkZeroLengthComparison } from './rules/rrd' import { RULES } from './rules/rules' diff --git a/src/rulesReport.ts b/src/rulesReport.ts index a301f62c..87ac2c00 100644 --- a/src/rulesReport.ts +++ b/src/rulesReport.ts @@ -1,5 +1,4 @@ import type { GroupBy, Health, Offense, OffensesGrouped, OutputLevel, ReportFunction, SortBy } from './types' -import type { OverrideConfig } from './types/Override' import type { ReportOutput } from './types/ReportOutput' import { reportApiWithoutMethod, reportBigVif, reportBigVshow, reportComplicatedConditions, reportComputedSideEffects, reportCyclomaticComplexity, reportDeepIndentation, reportElseCondition, reportFunctionSize, reportHtmlImageElements, reportHtmlLink, reportIfWithoutCurlyBraces, reportMagicNumbers, reportNestedTernary, reportNoInlineStyles, reportNoPropDestructure, reportNoVarDeclaration, reportParameterCount, reportPlainScript, reportPropsDrilling, reportScriptLength, reportShortVariableName, reportTooManyProps, reportVForWithIndexKey, reportZeroLengthComparison } from './rules/rrd' import { reportElementSelectorsWithScoped, reportImplicitParentChildCommunication } from './rules/vue-caution' diff --git a/src/types/Config.ts b/src/types/Config.ts index 42754c0e..6becb1ed 100644 --- a/src/types/Config.ts +++ b/src/types/Config.ts @@ -1,14 +1,14 @@ -import type { OverrideConfig } from "./Override" +import type { OverrideConfig } from './Override' export interface Config { - path: string - apply: string - ignore: string - exclude: string - group: string - level: string - sort: string - output: string - override: OverrideConfig - isDefault?: boolean + path: string + apply: string + ignore: string + exclude: string + group: string + level: string + sort: string + output: string + override: OverrideConfig + isDefault?: boolean }