UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

40 lines (34 loc) 833 B
import type { RuleConfig } from '../rule-config'; /** * Config. */ export interface HtmlQuotesConfig { avoidEscape?: boolean; } /** * Option. */ export type HtmlQuotesOption = 'double' | 'single'; /** * Options. */ export type HtmlQuotesOptions = [HtmlQuotesOption?, HtmlQuotesConfig?]; /** * Enforce quotes style of HTML attributes. * * @see [html-quotes](https://eslint.vuejs.org/rules/html-quotes.html) */ export type HtmlQuotesRuleConfig = RuleConfig<HtmlQuotesOptions>; /** * Enforce quotes style of HTML attributes. * * @see [html-quotes](https://eslint.vuejs.org/rules/html-quotes.html) */ export interface HtmlQuotesRule { /** * Enforce quotes style of HTML attributes. * * @see [html-quotes](https://eslint.vuejs.org/rules/html-quotes.html) */ 'vue/html-quotes': HtmlQuotesRuleConfig; }