UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

37 lines (32 loc) 1 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface MatchComponentFileNameOption { extensions?: string[]; shouldMatchCase?: boolean; } /** * Options. */ export type MatchComponentFileNameOptions = [MatchComponentFileNameOption?]; /** * Require component name property to match its file name. * * @see [match-component-file-name](https://eslint.vuejs.org/rules/match-component-file-name.html) */ export type MatchComponentFileNameRuleConfig = RuleConfig<MatchComponentFileNameOptions>; /** * Require component name property to match its file name. * * @see [match-component-file-name](https://eslint.vuejs.org/rules/match-component-file-name.html) */ export interface MatchComponentFileNameRule { /** * Require component name property to match its file name. * * @see [match-component-file-name](https://eslint.vuejs.org/rules/match-component-file-name.html) */ 'vue/match-component-file-name': MatchComponentFileNameRuleConfig; }