@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 748 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Disallow using an async function as a Promise executor.
*
* @see [no-async-promise-executor](https://eslint.org/docs/latest/rules/no-async-promise-executor)
*/
export type NoAsyncPromiseExecutorRuleConfig = RuleConfig<[]>;
/**
* Disallow using an async function as a Promise executor.
*
* @see [no-async-promise-executor](https://eslint.org/docs/latest/rules/no-async-promise-executor)
*/
export interface NoAsyncPromiseExecutorRule {
/**
* Disallow using an async function as a Promise executor.
*
* @see [no-async-promise-executor](https://eslint.org/docs/latest/rules/no-async-promise-executor)
*/
'no-async-promise-executor': NoAsyncPromiseExecutorRuleConfig;
}