@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
34 lines (29 loc) • 986 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export type PreferSnapshotHintOption = 'always' | 'multi';
/**
* Options.
*/
export type PreferSnapshotHintOptions = [PreferSnapshotHintOption?];
/**
* Prefer including a hint with external snapshots.
*
* @see [prefer-snapshot-hint](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md)
*/
export type PreferSnapshotHintRuleConfig =
RuleConfig<PreferSnapshotHintOptions>;
/**
* Prefer including a hint with external snapshots.
*
* @see [prefer-snapshot-hint](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md)
*/
export interface PreferSnapshotHintRule {
/**
* Prefer including a hint with external snapshots.
*
* @see [prefer-snapshot-hint](https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md)
*/
'vitest/prefer-snapshot-hint': PreferSnapshotHintRuleConfig;
}