@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
33 lines (28 loc) • 689 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export type IdDenylistOption = string[];
/**
* Options.
*/
export type IdDenylistOptions = IdDenylistOption;
/**
* Disallow specified identifiers.
*
* @see [id-denylist](https://eslint.org/docs/latest/rules/id-denylist)
*/
export type IdDenylistRuleConfig = RuleConfig<IdDenylistOptions>;
/**
* Disallow specified identifiers.
*
* @see [id-denylist](https://eslint.org/docs/latest/rules/id-denylist)
*/
export interface IdDenylistRule {
/**
* Disallow specified identifiers.
*
* @see [id-denylist](https://eslint.org/docs/latest/rules/id-denylist)
*/
'id-denylist': IdDenylistRuleConfig;
}