@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
29 lines (26 loc) • 617 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Disallow `Object` constructors.
*
* @deprecated
*
* @see [no-new-object](https://eslint.org/docs/latest/rules/no-new-object)
*/
export type NoNewObjectRuleConfig = RuleConfig<[]>;
/**
* Disallow `Object` constructors.
*
* @deprecated
*
* @see [no-new-object](https://eslint.org/docs/latest/rules/no-new-object)
*/
export interface NoNewObjectRule {
/**
* Disallow `Object` constructors.
*
* @deprecated
*
* @see [no-new-object](https://eslint.org/docs/latest/rules/no-new-object)
*/
'no-new-object': NoNewObjectRuleConfig;
}