UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

38 lines (33 loc) 948 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface UnboundMethodOption { /** * Whether to skip checking whether `static` methods are correctly bound. */ ignoreStatic?: boolean; } /** * Options. */ export type UnboundMethodOptions = [UnboundMethodOption?]; /** * Enforce unbound methods are called with their expected scope. * * @see [unbound-method](https://typescript-eslint.io/rules/unbound-method) */ export type UnboundMethodRuleConfig = RuleConfig<UnboundMethodOptions>; /** * Enforce unbound methods are called with their expected scope. * * @see [unbound-method](https://typescript-eslint.io/rules/unbound-method) */ export interface UnboundMethodRule { /** * Enforce unbound methods are called with their expected scope. * * @see [unbound-method](https://typescript-eslint.io/rules/unbound-method) */ '@typescript-eslint/unbound-method': UnboundMethodRuleConfig; }