@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 525 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Require `let` or `const` instead of `var`.
*
* @see [no-var](https://eslint.org/docs/latest/rules/no-var)
*/
export type NoVarRuleConfig = RuleConfig<[]>;
/**
* Require `let` or `const` instead of `var`.
*
* @see [no-var](https://eslint.org/docs/latest/rules/no-var)
*/
export interface NoVarRule {
/**
* Require `let` or `const` instead of `var`.
*
* @see [no-var](https://eslint.org/docs/latest/rules/no-var)
*/
'no-var': NoVarRuleConfig;
}