UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

23 lines (20 loc) 775 B
import type { RuleConfig } from '../rule-config'; /** * Prefer `for…of` over the `forEach` method. * * @see [no-array-for-each](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-array-for-each.md) */ export type NoArrayForEachRuleConfig = RuleConfig<[]>; /** * Prefer `for…of` over the `forEach` method. * * @see [no-array-for-each](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-array-for-each.md) */ export interface NoArrayForEachRule { /** * Prefer `for…of` over the `forEach` method. * * @see [no-array-for-each](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-array-for-each.md) */ 'unicorn/no-array-for-each': NoArrayForEachRuleConfig; }