UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

35 lines (30 loc) 853 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface CommentDirectiveOption { reportUnusedDisableDirectives?: boolean; } /** * Options. */ export type CommentDirectiveOptions = [CommentDirectiveOption?]; /** * Support comment-directives in `<template>`. * * @see [comment-directive](https://eslint.vuejs.org/rules/comment-directive.html) */ export type CommentDirectiveRuleConfig = RuleConfig<CommentDirectiveOptions>; /** * Support comment-directives in `<template>`. * * @see [comment-directive](https://eslint.vuejs.org/rules/comment-directive.html) */ export interface CommentDirectiveRule { /** * Support comment-directives in `<template>`. * * @see [comment-directive](https://eslint.vuejs.org/rules/comment-directive.html) */ 'vue/comment-directive': CommentDirectiveRuleConfig; }