UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

36 lines (31 loc) 828 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface DotNotationOption { allowKeywords?: boolean; allowPattern?: string; } /** * Options. */ export type DotNotationOptions = [DotNotationOption?]; /** * Enforce dot notation whenever possible in `<template>`. * * @see [dot-notation](https://eslint.vuejs.org/rules/dot-notation.html) */ export type DotNotationRuleConfig = RuleConfig<DotNotationOptions>; /** * Enforce dot notation whenever possible in `<template>`. * * @see [dot-notation](https://eslint.vuejs.org/rules/dot-notation.html) */ export interface DotNotationRule { /** * Enforce dot notation whenever possible in `<template>`. * * @see [dot-notation](https://eslint.vuejs.org/rules/dot-notation.html) */ 'vue/dot-notation': DotNotationRuleConfig; }