UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

38 lines (33 loc) 1.09 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface NamespaceOption { /** * If `false`, will report computed (and thus, un-lintable) references to namespace members. */ allowComputed?: boolean; } /** * Options. */ export type NamespaceOptions = [NamespaceOption?]; /** * Ensure imported namespaces contain dereferenced properties as they are dereferenced. * * @see [namespace](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/namespace.md) */ export type NamespaceRuleConfig = RuleConfig<NamespaceOptions>; /** * Ensure imported namespaces contain dereferenced properties as they are dereferenced. * * @see [namespace](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/namespace.md) */ export interface NamespaceRule { /** * Ensure imported namespaces contain dereferenced properties as they are dereferenced. * * @see [namespace](https://github.com/import-js/eslint-plugin-import/blob/v2.28.1/docs/rules/namespace.md) */ 'import/namespace': NamespaceRuleConfig; }