UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

36 lines (31 loc) 1.09 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface PreferNumberPropertiesOption { checkInfinity?: boolean; } /** * Options. */ export type PreferNumberPropertiesOptions = [PreferNumberPropertiesOption?]; /** * Prefer `Number` static properties over global ones. * * @see [prefer-number-properties](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-number-properties.md) */ export type PreferNumberPropertiesRuleConfig = RuleConfig<PreferNumberPropertiesOptions>; /** * Prefer `Number` static properties over global ones. * * @see [prefer-number-properties](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-number-properties.md) */ export interface PreferNumberPropertiesRule { /** * Prefer `Number` static properties over global ones. * * @see [prefer-number-properties](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-number-properties.md) */ 'unicorn/prefer-number-properties': PreferNumberPropertiesRuleConfig; }