UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

35 lines (30 loc) 734 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface ValidVSlotOption { allowModifiers?: boolean; } /** * Options. */ export type ValidVSlotOptions = [ValidVSlotOption?]; /** * Enforce valid `v-slot` directives. * * @see [valid-v-slot](https://eslint.vuejs.org/rules/valid-v-slot.html) */ export type ValidVSlotRuleConfig = RuleConfig<ValidVSlotOptions>; /** * Enforce valid `v-slot` directives. * * @see [valid-v-slot](https://eslint.vuejs.org/rules/valid-v-slot.html) */ export interface ValidVSlotRule { /** * Enforce valid `v-slot` directives. * * @see [valid-v-slot](https://eslint.vuejs.org/rules/valid-v-slot.html) */ 'vue/valid-v-slot': ValidVSlotRuleConfig; }