UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

33 lines (28 loc) 688 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export type VOnStyleOption = 'shorthand' | 'longform'; /** * Options. */ export type VOnStyleOptions = [VOnStyleOption?]; /** * Enforce `v-on` directive style. * * @see [v-on-style](https://eslint.vuejs.org/rules/v-on-style.html) */ export type VOnStyleRuleConfig = RuleConfig<VOnStyleOptions>; /** * Enforce `v-on` directive style. * * @see [v-on-style](https://eslint.vuejs.org/rules/v-on-style.html) */ export interface VOnStyleRule { /** * Enforce `v-on` directive style. * * @see [v-on-style](https://eslint.vuejs.org/rules/v-on-style.html) */ 'vue/v-on-style': VOnStyleRuleConfig; }