UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

35 lines (30 loc) 1.01 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface NoBaseToStringOption { ignoredTypeNames?: string[]; } /** * Options. */ export type NoBaseToStringOptions = [NoBaseToStringOption?]; /** * Require `.toString()` to only be called on objects which provide useful information when stringified. * * @see [no-base-to-string](https://typescript-eslint.io/rules/no-base-to-string) */ export type NoBaseToStringRuleConfig = RuleConfig<NoBaseToStringOptions>; /** * Require `.toString()` to only be called on objects which provide useful information when stringified. * * @see [no-base-to-string](https://typescript-eslint.io/rules/no-base-to-string) */ export interface NoBaseToStringRule { /** * Require `.toString()` to only be called on objects which provide useful information when stringified. * * @see [no-base-to-string](https://typescript-eslint.io/rules/no-base-to-string) */ '@typescript-eslint/no-base-to-string': NoBaseToStringRuleConfig; }