UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 897 B
import type { RuleConfig } from '../rule-config'; /** * Prefer mock resolved/rejected shorthands for promises. * * @see [prefer-mock-promise-shorthand](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md) */ export type PreferMockPromiseShorthandRuleConfig = RuleConfig<[]>; /** * Prefer mock resolved/rejected shorthands for promises. * * @see [prefer-mock-promise-shorthand](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md) */ export interface PreferMockPromiseShorthandRule { /** * Prefer mock resolved/rejected shorthands for promises. * * @see [prefer-mock-promise-shorthand](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md) */ 'vitest/prefer-mock-promise-shorthand': PreferMockPromiseShorthandRuleConfig; }