Skip to content
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

Add no-magic-array-flat-depth rule #2335

Merged
merged 9 commits into from May 7, 2024

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented May 7, 2024

Fixes #1920

@fisker fisker marked this pull request as ready for review May 7, 2024 09:51
@@ -0,0 +1,40 @@
# Disallow magic number as the `depth` argument in `Array#flat(…).`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Disallow magic number as the `depth` argument in `Array#flat(…).`
# Disallow a magic number as the `depth` argument in `Array#flat(…).`

rules/no-magic-array-flat-depth.js Outdated Show resolved Hide resolved
@sindresorhus sindresorhus merged commit bc17428 into sindresorhus:main May 7, 2024
17 checks passed
@fisker fisker deleted the no-magic-array-flat-depth branch May 7, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rule proposal: no-magic-array-flat-depth
2 participants