-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation bug in max-depth #11991
Documentation bug in max-depth #11991
Comments
Hi @imai0917, thanks for the issue. You are right: that is not a good example in the docs and it needs to be changed. Would you like to submit a pull request? |
However, the default option of |
Yeah, I would submit a pull request. The below example would work with the default option
|
Signed-off-by: Gabriel R. Sezefredo <g@briel.dev>
Signed-off-by: Gabriel R. Sezefredo <g@briel.dev>
Could this be assigned to @imai0917? I was looking for something to take for Hacktober Fest but this is already fixed. |
The version of ESLint you are using.
v5.16.0
The problem you want to solve.
The below example is from https://eslint.org/docs/rules/max-depth, ESLint v5.16.0 doesn't make issues for the example.
Nesting function expressions would not be counted as a nesting depth, so the arrow function expression would not increase the depth count but reset the count.
Your take on the correct solution to problem.
The below example or other equivalents would work.
Are you willing to submit a pull request to implement this change?
The text was updated successfully, but these errors were encountered: