@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 607 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Disallow initializing variables to `undefined`.
*
* @see [no-undef-init](https://eslint.org/docs/latest/rules/no-undef-init)
*/
export type NoUndefInitRuleConfig = RuleConfig<[]>;
/**
* Disallow initializing variables to `undefined`.
*
* @see [no-undef-init](https://eslint.org/docs/latest/rules/no-undef-init)
*/
export interface NoUndefInitRule {
/**
* Disallow initializing variables to `undefined`.
*
* @see [no-undef-init](https://eslint.org/docs/latest/rules/no-undef-init)
*/
'no-undef-init': NoUndefInitRuleConfig;
}