Skip to content

Commit

Permalink
fix: fix typecheck (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq authored Sep 13, 2024
1 parent 0fefeb5 commit 2a0bd8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rules/prefer-lowercase-title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface PluginDocs {
requiresTypeChecking?: boolean
}

export function createEslintRule<TOptions extends readonly unknown[], TMessageIds extends string>(rule: Readonly<ESLintUtils.RuleWithMetaAndName<TOptions, TMessageIds>>) {
export function createEslintRule<TOptions extends readonly unknown[], TMessageIds extends string>(rule: Readonly<ESLintUtils.RuleWithMetaAndName<TOptions, TMessageIds, PluginDocs>>) {
const createRule = ESLintUtils.RuleCreator<PluginDocs>(
ruleName =>
`https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/${ruleName}.md`
Expand Down

0 comments on commit 2a0bd8e

Please sign in to comment.