UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 829 B
import type { RuleConfig } from '../rule-config'; /** * Enforce the use of `Math.trunc` instead of bitwise operators. * * @see [prefer-math-trunc](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-math-trunc.md) */ export type PreferMathTruncRuleConfig = RuleConfig<[]>; /** * Enforce the use of `Math.trunc` instead of bitwise operators. * * @see [prefer-math-trunc](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-math-trunc.md) */ export interface PreferMathTruncRule { /** * Enforce the use of `Math.trunc` instead of bitwise operators. * * @see [prefer-math-trunc](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-math-trunc.md) */ 'unicorn/prefer-math-trunc': PreferMathTruncRuleConfig; }