@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
36 lines (31 loc) • 1.26 kB
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface CheckPropertyNamesOption {
enableFixer?: boolean;
}
/**
* Options.
*/
export type CheckPropertyNamesOptions = [CheckPropertyNamesOption?];
/**
* Ensures that property names in JSDoc are not duplicated on the same block and that nested properties have defined roots.
*
* @see [check-property-names](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-property-names.md#repos-sticky-header)
*/
export type CheckPropertyNamesRuleConfig =
RuleConfig<CheckPropertyNamesOptions>;
/**
* Ensures that property names in JSDoc are not duplicated on the same block and that nested properties have defined roots.
*
* @see [check-property-names](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-property-names.md#repos-sticky-header)
*/
export interface CheckPropertyNamesRule {
/**
* Ensures that property names in JSDoc are not duplicated on the same block and that nested properties have defined roots.
*
* @see [check-property-names](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-property-names.md#repos-sticky-header)
*/
'jsdoc/check-property-names': CheckPropertyNamesRuleConfig;
}