@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
43 lines (38 loc) • 1.03 kB
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export type FuncCallSpacingOption =
| []
| ['never']
| []
| ['always']
| [
'always',
{
allowNewlines?: boolean;
},
];
/**
* Options.
*/
export type FuncCallSpacingOptions = FuncCallSpacingOption;
/**
* Require or disallow spacing between function identifiers and their invocations.
*
* @see [func-call-spacing](https://typescript-eslint.io/rules/func-call-spacing)
*/
export type FuncCallSpacingRuleConfig = RuleConfig<FuncCallSpacingOptions>;
/**
* Require or disallow spacing between function identifiers and their invocations.
*
* @see [func-call-spacing](https://typescript-eslint.io/rules/func-call-spacing)
*/
export interface FuncCallSpacingRule {
/**
* Require or disallow spacing between function identifiers and their invocations.
*
* @see [func-call-spacing](https://typescript-eslint.io/rules/func-call-spacing)
*/
'@typescript-eslint/func-call-spacing': FuncCallSpacingRuleConfig;
}