UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 784 B
import type { RuleConfig } from '../rule-config'; /** * Do not use a `for` loop that can be replaced with a `for-of` loop. * * @see [no-for-loop](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-for-loop.md) */ export type NoForLoopRuleConfig = RuleConfig<[]>; /** * Do not use a `for` loop that can be replaced with a `for-of` loop. * * @see [no-for-loop](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-for-loop.md) */ export interface NoForLoopRule { /** * Do not use a `for` loop that can be replaced with a `for-of` loop. * * @see [no-for-loop](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-for-loop.md) */ 'unicorn/no-for-loop': NoForLoopRuleConfig; }