Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 652f5b7

Browse files
committed
Add vitest rules
1 parent a5048f3 commit 652f5b7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/rules/vitest/expect-expect.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
import type { RuleConfig } from '../rule-config';
22

3+
/**
4+
* Option.
5+
*/
6+
export interface ExpectExpectOption {
7+
customExpressions?: any[];
8+
}
9+
10+
/**
11+
* Options.
12+
*/
13+
export type ExpectExpectOptions = [ExpectExpectOption?];
14+
315
/**
416
* Enforce having expectation in test body.
517
*
618
* @see [expect-expect](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md)
719
*/
8-
export type ExpectExpectRuleConfig = RuleConfig<[]>;
20+
export type ExpectExpectRuleConfig = RuleConfig<ExpectExpectOptions>;
921

1022
/**
1123
* Enforce having expectation in test body.

0 commit comments

Comments
 (0)