Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 761 Bytes

File metadata and controls

34 lines (22 loc) · 761 Bytes

no-loop-func

Disallow function declarations that contain unsafe references inside loop statements.

Rule Details

This rule extends the base eslint/no-loop-func rule. It adds support for TypeScript types.

How to Use

{
  // note you must disable the base rule as it can report incorrect errors
  "no-loop-func": "off",
  "@typescript-eslint/no-loop-func": ["error"]
}

Options

See eslint/no-loop-func options.

Taken with ❤️ from ESLint core

Attributes

  • ✅ Recommended
  • 🔧 Fixable
  • 💭 Requires type information