UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

36 lines (31 loc) 998 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface NoRestrictedMatchersOption { [k: string]: string | null; } /** * Options. */ export type NoRestrictedMatchersOptions = [NoRestrictedMatchersOption?]; /** * Disallow the use of certain matchers. * * @see [no-restricted-matchers](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md) */ export type NoRestrictedMatchersRuleConfig = RuleConfig<NoRestrictedMatchersOptions>; /** * Disallow the use of certain matchers. * * @see [no-restricted-matchers](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md) */ export interface NoRestrictedMatchersRule { /** * Disallow the use of certain matchers. * * @see [no-restricted-matchers](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md) */ 'vitest/no-restricted-matchers': NoRestrictedMatchersRuleConfig; }