From c820ce8a975c22b17bd78f8fc5bdb8994fb1bf95 Mon Sep 17 00:00:00 2001 From: ntnyq Date: Fri, 13 Sep 2024 03:04:30 +0800 Subject: [PATCH] fix: fix typecheck --- src/rules/prefer-lowercase-title.ts | 2 +- src/utils/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules/prefer-lowercase-title.ts b/src/rules/prefer-lowercase-title.ts index 9356ded..5aea1ca 100644 --- a/src/rules/prefer-lowercase-title.ts +++ b/src/rules/prefer-lowercase-title.ts @@ -4,7 +4,7 @@ import { isTypeOfVitestFnCall, parseVitestFnCall } from '../utils/parse-vitest-f import { CallExpressionWithSingleArgument, DescribeAlias, TestCaseName } from '../utils/types' export const RULE_NAME = 'prefer-lowercase-title' -export type MessageIds = 'lowerCaseTitle' +export type MessageIds = 'lowerCaseTitle' | 'fullyLowerCaseTitle' type IgnorableFunctionExpressions = | TestCaseName.it diff --git a/src/utils/index.ts b/src/utils/index.ts index 508724a..9749ef0 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -17,7 +17,7 @@ interface PluginDocs { requiresTypeChecking?: boolean } -export function createEslintRule(rule: Readonly>) { +export function createEslintRule(rule: Readonly>) { const createRule = ESLintUtils.RuleCreator( ruleName => `https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/${ruleName}.md`