UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

41 lines (36 loc) 1.31 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface CheckParamNamesOption { allowExtraTrailingParamDocs?: boolean; checkDestructured?: boolean; checkRestProperty?: boolean; checkTypesPattern?: string; disableExtraPropertyReporting?: boolean; enableFixer?: boolean; useDefaultObjectProperties?: boolean; } /** * Options. */ export type CheckParamNamesOptions = [CheckParamNamesOption?]; /** * Ensures that parameter names in JSDoc match those in the function declaration. * * @see [check-param-names](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-param-names.md#repos-sticky-header) */ export type CheckParamNamesRuleConfig = RuleConfig<CheckParamNamesOptions>; /** * Ensures that parameter names in JSDoc match those in the function declaration. * * @see [check-param-names](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-param-names.md#repos-sticky-header) */ export interface CheckParamNamesRule { /** * Ensures that parameter names in JSDoc match those in the function declaration. * * @see [check-param-names](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-param-names.md#repos-sticky-header) */ 'jsdoc/check-param-names': CheckParamNamesRuleConfig; }