@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
36 lines (31 loc) • 779 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface DotNotationOption {
allowKeywords?: boolean;
allowPattern?: string;
}
/**
* Options.
*/
export type DotNotationOptions = [DotNotationOption?];
/**
* Enforce dot notation whenever possible.
*
* @see [dot-notation](https://eslint.org/docs/latest/rules/dot-notation)
*/
export type DotNotationRuleConfig = RuleConfig<DotNotationOptions>;
/**
* Enforce dot notation whenever possible.
*
* @see [dot-notation](https://eslint.org/docs/latest/rules/dot-notation)
*/
export interface DotNotationRule {
/**
* Enforce dot notation whenever possible.
*
* @see [dot-notation](https://eslint.org/docs/latest/rules/dot-notation)
*/
'dot-notation': DotNotationRuleConfig;
}