@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 619 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Disallow throwing literals as exceptions.
*
* @see [no-throw-literal](https://eslint.org/docs/latest/rules/no-throw-literal)
*/
export type NoThrowLiteralRuleConfig = RuleConfig<[]>;
/**
* Disallow throwing literals as exceptions.
*
* @see [no-throw-literal](https://eslint.org/docs/latest/rules/no-throw-literal)
*/
export interface NoThrowLiteralRule {
/**
* Disallow throwing literals as exceptions.
*
* @see [no-throw-literal](https://eslint.org/docs/latest/rules/no-throw-literal)
*/
'no-throw-literal': NoThrowLiteralRuleConfig;
}