@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
42 lines (37 loc) • 963 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface NoNamespaceOption {
/**
* Whether to allow `declare` with custom TypeScript namespaces.
*/
allowDeclarations?: boolean;
/**
* Whether to allow `declare` with custom TypeScript namespaces inside definition files.
*/
allowDefinitionFiles?: boolean;
}
/**
* Options.
*/
export type NoNamespaceOptions = [NoNamespaceOption?];
/**
* Disallow TypeScript namespaces.
*
* @see [no-namespace](https://typescript-eslint.io/rules/no-namespace)
*/
export type NoNamespaceRuleConfig = RuleConfig<NoNamespaceOptions>;
/**
* Disallow TypeScript namespaces.
*
* @see [no-namespace](https://typescript-eslint.io/rules/no-namespace)
*/
export interface NoNamespaceRule {
/**
* Disallow TypeScript namespaces.
*
* @see [no-namespace](https://typescript-eslint.io/rules/no-namespace)
*/
'@typescript-eslint/no-namespace': NoNamespaceRuleConfig;
}