Content-Length: 67056 | pFad | https://typescript-eslint.io/rules/no-loop-func

no-loop-func | typescript-eslint
Skip to main content

no-loop-func

Disallow function declarations that contain unsafe references inside loop statements.

🧱

This is an "extension" rule that replaces a core ESLint rule to work with TypeScript. See Rules > Extension Rules.

This rule extends the base no-loop-func rule from ESLint core. It adds support for TypeScript types.

Options

See eslint/no-loop-func's options.

How to Use

eslint.config.mjs
export default tseslint.config({
rules: {
// Note: you must disable the base rule as it can report incorrect errors
"no-loop-func": "off",
"@typescript-eslint/no-loop-func": "error"
}
});

Try this rule in the playground ↗

Resources

Taken with ❤️ from ESLint core.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://typescript-eslint.io/rules/no-loop-func

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy