UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 651 B
import type { RuleConfig } from '../rule-config'; /** * Disallow unnecessary calls to `.call()` and `.apply()`. * * @see [no-useless-call](https://eslint.org/docs/latest/rules/no-useless-call) */ export type NoUselessCallRuleConfig = RuleConfig<[]>; /** * Disallow unnecessary calls to `.call()` and `.apply()`. * * @see [no-useless-call](https://eslint.org/docs/latest/rules/no-useless-call) */ export interface NoUselessCallRule { /** * Disallow unnecessary calls to `.call()` and `.apply()`. * * @see [no-useless-call](https://eslint.org/docs/latest/rules/no-useless-call) */ 'no-useless-call': NoUselessCallRuleConfig; }