UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 665 B
import type { RuleConfig } from '../rule-config'; /** * Disallow `new Array()`. * * @see [no-new-array](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-new-array.md) */ export type NoNewArrayRuleConfig = RuleConfig<[]>; /** * Disallow `new Array()`. * * @see [no-new-array](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-new-array.md) */ export interface NoNewArrayRule { /** * Disallow `new Array()`. * * @see [no-new-array](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-new-array.md) */ 'unicorn/no-new-array': NoNewArrayRuleConfig; }