Skip to content

Commit

Permalink
chore: fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Jul 6, 2024
1 parent f4ed211 commit ae27ca6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/rules/consistent-test-it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

const buildFixer =
(
callee: TSESTree.LeftHandSideExpression,
callee: TSESTree.Expression,
nodeName: string,
preferredTestKeyword: TestCaseName.test | TestCaseName.it,
) =>
Expand Down
2 changes: 0 additions & 2 deletions src/rules/unbound-method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ export default createRule<Options, MessageIds>({
'Enforce unbound methods are called with their expected scope',
requiresTypeChecking: true,
...baseRule?.meta.docs,
// mark this as not recommended
recommended: undefined,
},
},
create(context) {
Expand Down
6 changes: 5 additions & 1 deletion src/rules/utils/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ import { type ParsedExpectFnCall, isTypeOfJestFnCall } from './parseJestFnCall';

const REPO_URL = 'https://github.com/jest-community/eslint-plugin-jest';

export const createRule = ESLintUtils.RuleCreator(name => {
export interface JestPluginDocs {
requiresTypeChecking?: boolean;
}

export const createRule = ESLintUtils.RuleCreator<JestPluginDocs>(name => {
const ruleName = parsePath(name).name;

return `${REPO_URL}/blob/v${version}/docs/rules/${ruleName}.md`;
Expand Down

0 comments on commit ae27ca6

Please sign in to comment.