Urara-Blog/node_modules/.pnpm-store/v3/files/e1/2113172d2acbb4b1a9bc84766fefd2834602f4e8152af3e0323b8e904d1bedb396dfc4cd724a33ee773c4d691335a475f9364611d6cda35ad4889d9b446403
2022-08-14 01:14:53 +08:00

32 lines
830 B
Text

---
description: 'Disallow function declarations that contain unsafe references inside loop statements.'
---
> 🛑 This file is source code, not the primary documentation location! 🛑
>
> See **https://typescript-eslint.io/rules/no-loop-func** for documentation.
## Rule Details
This rule extends the base [`eslint/no-loop-func`](https://eslint.org/docs/rules/no-loop-func) rule.
It adds support for TypeScript types.
## How to Use
```jsonc
{
// 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](https://eslint.org/docs/rules/no-loop-func#options).
<sup>
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/no-loop-func.md)
</sup>