This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +28
-26
lines changed Expand file tree Collapse file tree 6 files changed +28
-26
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import type { PreferExpectResolvesRule } from './prefer-expect-resolves';
30
30
import type { PreferHooksInOrderRule } from './prefer-hooks-in-order' ;
31
31
import type { PreferHooksOnTopRule } from './prefer-hooks-on-top' ;
32
32
import type { PreferLowercaseTitleRule } from './prefer-lowercase-title' ;
33
+ import type { PreferMockPromiseShorthandRule } from './prefer-mock-promise-shorthand' ;
33
34
import type { PreferSnapshotHintRule } from './prefer-snapshot-hint' ;
34
35
import type { PreferSpyOnRule } from './prefer-spy-on' ;
35
36
import type { PreferStrictEqualRule } from './prefer-strict-equal' ;
@@ -40,7 +41,6 @@ import type { PreferToBeTruthyRule } from './prefer-to-be-truthy';
40
41
import type { PreferToContainRule } from './prefer-to-contain' ;
41
42
import type { PreferToHaveLengthRule } from './prefer-to-have-length' ;
42
43
import type { PreferTodoRule } from './prefer-todo' ;
43
- import type { PreferMockPromiseShorthandRule } from './preferMockPromiseShorthand' ;
44
44
import type { RequireHookRule } from './require-hook' ;
45
45
import type { RequireToThrowMessageRule } from './require-to-throw-message' ;
46
46
import type { RequireTopLevelDescribeRule } from './require-top-level-describe' ;
Original file line number Diff line number Diff line change 1
1
import type { RuleConfig } from '../rule-config' ;
2
2
3
3
/**
4
- * Disallow using a callback in asynchrounous tests and hooks.
4
+ * Disallow using a callback in asynchronous tests and hooks.
5
5
*
6
6
* @see [no-done-callback](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md)
7
7
*/
8
8
export type NoDoneCallbackRuleConfig = RuleConfig < [ ] > ;
9
9
10
10
/**
11
- * Disallow using a callback in asynchrounous tests and hooks.
11
+ * Disallow using a callback in asynchronous tests and hooks.
12
12
*
13
13
* @see [no-done-callback](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md)
14
14
*/
15
15
export interface NoDoneCallbackRule {
16
16
/**
17
- * Disallow using a callback in asynchrounous tests and hooks.
17
+ * Disallow using a callback in asynchronous tests and hooks.
18
18
*
19
19
* @see [no-done-callback](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md)
20
20
*/
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export interface PreferLowercaseTitleOption {
7
7
ignore ?: ( 'describe' | 'test' | 'it' ) [ ] ;
8
8
allowedPrefixes ?: string [ ] ;
9
9
ignoreTopLevelDescribe ?: boolean ;
10
+ lowercaseFirstCharacterOnly ?: boolean ;
10
11
}
11
12
12
13
/**
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config' ;
2
+
3
+ /**
4
+ * Prefer mock resolved/rejected shorthands for promises.
5
+ *
6
+ * @see [prefer-mock-promise-shorthand](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md)
7
+ */
8
+ export type PreferMockPromiseShorthandRuleConfig = RuleConfig < [ ] > ;
9
+
10
+ /**
11
+ * Prefer mock resolved/rejected shorthands for promises.
12
+ *
13
+ * @see [prefer-mock-promise-shorthand](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md)
14
+ */
15
+ export interface PreferMockPromiseShorthandRule {
16
+ /**
17
+ * Prefer mock resolved/rejected shorthands for promises.
18
+ *
19
+ * @see [prefer-mock-promise-shorthand](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md)
20
+ */
21
+ 'vitest/prefer-mock-promise-shorthand' : PreferMockPromiseShorthandRuleConfig ;
22
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import type { RuleConfig } from '../rule-config';
5
5
*/
6
6
export interface ValidTitleOption {
7
7
ignoreTypeOfDescribeName ?: boolean ;
8
+ allowArguments ?: boolean ;
8
9
disallowedWords ?: string [ ] ;
9
10
/**
10
11
*/
You can’t perform that action at this time.
0 commit comments