UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

43 lines (38 loc) 1.21 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface MatchNameOption { match: { allowName?: string; comment?: string; context?: string; disallowName?: string; message?: string; tags?: string[]; [k: string]: any; }[]; } /** * Options. */ export type MatchNameOptions = [MatchNameOption?]; /** * Reports the name portion of a JSDoc tag if matching or not matching a given regular expression. * * @see [match-name](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-name.md#repos-sticky-header) */ export type MatchNameRuleConfig = RuleConfig<MatchNameOptions>; /** * Reports the name portion of a JSDoc tag if matching or not matching a given regular expression. * * @see [match-name](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-name.md#repos-sticky-header) */ export interface MatchNameRule { /** * Reports the name portion of a JSDoc tag if matching or not matching a given regular expression. * * @see [match-name](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-name.md#repos-sticky-header) */ 'jsdoc/match-name': MatchNameRuleConfig; }