UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

33 lines (28 loc) 695 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export type StrictOption = 'never' | 'global' | 'function' | 'safe'; /** * Options. */ export type StrictOptions = [StrictOption?]; /** * Require or disallow strict mode directives. * * @see [strict](https://eslint.org/docs/latest/rules/strict) */ export type StrictRuleConfig = RuleConfig<StrictOptions>; /** * Require or disallow strict mode directives. * * @see [strict](https://eslint.org/docs/latest/rules/strict) */ export interface StrictRule { /** * Require or disallow strict mode directives. * * @see [strict](https://eslint.org/docs/latest/rules/strict) */ strict: StrictRuleConfig; }