max-nested-calls
UnreleasedConfiguration
rslint.config.ts
Limit the depth of nested calls and constructor calls passed as arguments to other calls.
Deep call nesting is harder to read and can usually be clarified by extracting an intermediate result.
Fluent receiver chains such as query().filter().map().toArray() do not increase the nesting depth. Function, class, JSX, and static-block boundaries reset the depth.
Options
max
Type: integer
Default: 3
Sets the maximum allowed nested call depth.
This port follows eslint-plugin-unicorn v75.0.0.