@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
43 lines (38 loc) • 1.19 kB
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface RequireParamTypeOption {
contexts?: (
| string
| {
comment?: string;
context?: string;
}
)[];
defaultDestructuredRootType?: string;
setDefaultDestructuredRootType?: boolean;
}
/**
* Options.
*/
export type RequireParamTypeOptions = [RequireParamTypeOption?];
/**
* Requires that each `@param` tag has a `type` value.
*
* @see [require-param-type](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-type.md#repos-sticky-header)
*/
export type RequireParamTypeRuleConfig = RuleConfig<RequireParamTypeOptions>;
/**
* Requires that each `@param` tag has a `type` value.
*
* @see [require-param-type](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-type.md#repos-sticky-header)
*/
export interface RequireParamTypeRule {
/**
* Requires that each `@param` tag has a `type` value.
*
* @see [require-param-type](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-type.md#repos-sticky-header)
*/
'jsdoc/require-param-type': RequireParamTypeRuleConfig;
}