Skip to content

Commit fdcbfc1

Browse files
committed
test: remove unnecessary oxlint rule cast
1 parent b331f46 commit fdcbfc1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/cli/src/__tests__/oxlint-plugin.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import {
1010
} from '../oxlint-plugin-config.js';
1111
import { preferVitePlusImportsRule, rewriteVitePlusImportSpecifier } from '../oxlint-plugin.js';
1212

13-
type TestedRule = Parameters<RuleTester['run']>[1];
14-
1513
describe('oxlint plugin config defaults', () => {
1614
it('adds vite-plus js plugin and lint rule defaults', () => {
1715
expect(
@@ -89,7 +87,7 @@ new RuleTester({
8987
languageOptions: {
9088
sourceType: 'module',
9189
},
92-
}).run(PREFER_VITE_PLUS_IMPORTS_RULE_NAME, preferVitePlusImportsRule as TestedRule, {
90+
}).run(PREFER_VITE_PLUS_IMPORTS_RULE_NAME, preferVitePlusImportsRule, {
9391
valid: [
9492
`import { defineConfig } from 'vite-plus'`,
9593
`export { expect } from 'vite-plus/test'`,

0 commit comments

Comments
 (0)