UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 815 B
import type { RuleConfig } from '../rule-config'; /** * Ensures the proper number of arguments are passed to Promise functions. * * @see [valid-params](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/valid-params.md) */ export type ValidParamsRuleConfig = RuleConfig<[]>; /** * Ensures the proper number of arguments are passed to Promise functions. * * @see [valid-params](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/valid-params.md) */ export interface ValidParamsRule { /** * Ensures the proper number of arguments are passed to Promise functions. * * @see [valid-params](https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/valid-params.md) */ 'promise/valid-params': ValidParamsRuleConfig; }