@datadayrepos/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
40 lines (35 loc) • 958 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface NoWarningCommentsOption {
terms?: string[];
location?: 'start' | 'anywhere';
/**
* @minItems 1
*/
decoration?: [string, ...string[]];
}
/**
* Options.
*/
export type NoWarningCommentsOptions = [NoWarningCommentsOption?];
/**
* Disallow specified warning terms in comments.
*
* @see [no-warning-comments](https://eslint.org/docs/latest/rules/no-warning-comments)
*/
export type NoWarningCommentsRuleConfig = RuleConfig<NoWarningCommentsOptions>;
/**
* Disallow specified warning terms in comments.
*
* @see [no-warning-comments](https://eslint.org/docs/latest/rules/no-warning-comments)
*/
export interface NoWarningCommentsRule {
/**
* Disallow specified warning terms in comments.
*
* @see [no-warning-comments](https://eslint.org/docs/latest/rules/no-warning-comments)
*/
'no-warning-comments': NoWarningCommentsRuleConfig;
}