@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 901 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Prefer omitting the `catch` binding parameter.
*
* @see [prefer-optional-catch-binding](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-optional-catch-binding.md)
*/
export type PreferOptionalCatchBindingRuleConfig = RuleConfig<[]>;
/**
* Prefer omitting the `catch` binding parameter.
*
* @see [prefer-optional-catch-binding](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-optional-catch-binding.md)
*/
export interface PreferOptionalCatchBindingRule {
/**
* Prefer omitting the `catch` binding parameter.
*
* @see [prefer-optional-catch-binding](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-optional-catch-binding.md)
*/
'unicorn/prefer-optional-catch-binding': PreferOptionalCatchBindingRuleConfig;
}