@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
39 lines (34 loc) • 761 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export type IdBlacklistOption = string[];
/**
* Options.
*/
export type IdBlacklistOptions = IdBlacklistOption;
/**
* Disallow specified identifiers.
*
* @deprecated
*
* @see [id-blacklist](https://eslint.org/docs/latest/rules/id-blacklist)
*/
export type IdBlacklistRuleConfig = RuleConfig<IdBlacklistOptions>;
/**
* Disallow specified identifiers.
*
* @deprecated
*
* @see [id-blacklist](https://eslint.org/docs/latest/rules/id-blacklist)
*/
export interface IdBlacklistRule {
/**
* Disallow specified identifiers.
*
* @deprecated
*
* @see [id-blacklist](https://eslint.org/docs/latest/rules/id-blacklist)
*/
'id-blacklist': IdBlacklistRuleConfig;
}