UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

55 lines (50 loc) 1.47 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface RequireParamOption { autoIncrementBase?: number; checkConstructors?: boolean; checkDestructured?: boolean; checkDestructuredRoots?: boolean; checkGetters?: boolean; checkRestProperty?: boolean; checkSetters?: boolean; checkTypesPattern?: string; contexts?: ( | string | { comment?: string; context?: string; } )[]; enableFixer?: boolean; enableRestElementFixer?: boolean; enableRootFixer?: boolean; exemptedBy?: string[]; unnamedRootBase?: string[]; useDefaultObjectProperties?: boolean; } /** * Options. */ export type RequireParamOptions = [RequireParamOption?]; /** * Requires that all function parameters are documented. * * @see [require-param](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param.md#repos-sticky-header) */ export type RequireParamRuleConfig = RuleConfig<RequireParamOptions>; /** * Requires that all function parameters are documented. * * @see [require-param](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param.md#repos-sticky-header) */ export interface RequireParamRule { /** * Requires that all function parameters are documented. * * @see [require-param](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param.md#repos-sticky-header) */ 'jsdoc/require-param': RequireParamRuleConfig; }