chore(lint): read the rule test's parser from typescript-eslint and drop a stale knip entry

This commit is contained in:
Maurice
2026-11-17 22:40:27 +01:00
parent b004d3b88e
commit fd864cc441
2 changed files with 2 additions and 3 deletions
@@ -1,8 +1,8 @@
import transactionsThroughUnitOfWork from '../../../eslint-rules/transactions-through-unit-of-work.mjs';
import tsParser from '@typescript-eslint/parser';
import { RuleTester, type Rule } from 'eslint';
import path from 'path';
import tseslint from 'typescript-eslint';
// TXGATE: the rule reads the receiver's type, so the tester runs against a real
// TypeScript program, the fixture project no-promise-as-value.test.ts uses
@@ -13,7 +13,7 @@ const filename = path.join(fixtureRoot, 'file.ts');
const ruleTester = new RuleTester({
languageOptions: {
parser: tsParser,
parser: tseslint.parser,
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: fixtureRoot,