UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

71 lines (66 loc) 1.55 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface AttributesOrderOption { order?: ( | ( | 'DEFINITION' | 'LIST_RENDERING' | 'CONDITIONALS' | 'RENDER_MODIFIERS' | 'GLOBAL' | 'UNIQUE' | 'SLOT' | 'TWO_WAY_BINDING' | 'OTHER_DIRECTIVES' | 'OTHER_ATTR' | 'ATTR_STATIC' | 'ATTR_DYNAMIC' | 'ATTR_SHORTHAND_BOOL' | 'EVENTS' | 'CONTENT' ) | ( | 'DEFINITION' | 'LIST_RENDERING' | 'CONDITIONALS' | 'RENDER_MODIFIERS' | 'GLOBAL' | 'UNIQUE' | 'SLOT' | 'TWO_WAY_BINDING' | 'OTHER_DIRECTIVES' | 'OTHER_ATTR' | 'ATTR_STATIC' | 'ATTR_DYNAMIC' | 'ATTR_SHORTHAND_BOOL' | 'EVENTS' | 'CONTENT' )[] )[]; alphabetical?: boolean; } /** * Options. */ export type AttributesOrderOptions = [AttributesOrderOption?]; /** * Enforce order of attributes. * * @see [attributes-order](https://eslint.vuejs.org/rules/attributes-order.html) */ export type AttributesOrderRuleConfig = RuleConfig<AttributesOrderOptions>; /** * Enforce order of attributes. * * @see [attributes-order](https://eslint.vuejs.org/rules/attributes-order.html) */ export interface AttributesOrderRule { /** * Enforce order of attributes. * * @see [attributes-order](https://eslint.vuejs.org/rules/attributes-order.html) */ 'vue/attributes-order': AttributesOrderRuleConfig; }