UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 823 B
import type { RuleConfig } from '../rule-config'; /** * Prefer `Reflect.apply()` over `Function#apply()`. * * @see [prefer-reflect-apply](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-reflect-apply.md) */ export type PreferReflectApplyRuleConfig = RuleConfig<[]>; /** * Prefer `Reflect.apply()` over `Function#apply()`. * * @see [prefer-reflect-apply](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-reflect-apply.md) */ export interface PreferReflectApplyRule { /** * Prefer `Reflect.apply()` over `Function#apply()`. * * @see [prefer-reflect-apply](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-reflect-apply.md) */ 'unicorn/prefer-reflect-apply': PreferReflectApplyRuleConfig; }