UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

43 lines (38 loc) 926 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ /** * @minItems 0 */ export type NoRestrictedGlobalsOption = ( | string | { name: string; message?: string; } )[]; /** * Options. */ export type NoRestrictedGlobalsOptions = NoRestrictedGlobalsOption; /** * Disallow specified global variables. * * @see [no-restricted-globals](https://eslint.org/docs/latest/rules/no-restricted-globals) */ export type NoRestrictedGlobalsRuleConfig = RuleConfig<NoRestrictedGlobalsOptions>; /** * Disallow specified global variables. * * @see [no-restricted-globals](https://eslint.org/docs/latest/rules/no-restricted-globals) */ export interface NoRestrictedGlobalsRule { /** * Disallow specified global variables. * * @see [no-restricted-globals](https://eslint.org/docs/latest/rules/no-restricted-globals) */ 'no-restricted-globals': NoRestrictedGlobalsRuleConfig; }