@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 606 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Disallow the use of `undefined` as an identifier.
*
* @see [no-undefined](https://eslint.org/docs/latest/rules/no-undefined)
*/
export type NoUndefinedRuleConfig = RuleConfig<[]>;
/**
* Disallow the use of `undefined` as an identifier.
*
* @see [no-undefined](https://eslint.org/docs/latest/rules/no-undefined)
*/
export interface NoUndefinedRule {
/**
* Disallow the use of `undefined` as an identifier.
*
* @see [no-undefined](https://eslint.org/docs/latest/rules/no-undefined)
*/
'no-undefined': NoUndefinedRuleConfig;
}