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

fix: lint all files in lib/ folder #3237

Merged
merged 1 commit into from
May 13, 2021

Conversation

ruyadorno
Copy link
Contributor

The current glob is missing lib/*.js files.

@ruyadorno ruyadorno requested a review from a team as a code owner May 12, 2021 21:29
@ruyadorno ruyadorno added Release 7.x work is associated with a specific npm 7 release release: next These items should be addressed in the next release semver:patch semver patch level for changes labels May 12, 2021
@wraithgar
Copy link
Member

How was this working then if the existing glob was wrong?

@wraithgar
Copy link
Member

** already matches "zero or more directories"

If I make a linting error in a file in lib it currently fails linting

/Users/wraithgar/Development/npm/cli/lib/unpublish.js
  118:11  error  'foo' is assigned a value but never used  no-unused-vars
  119:11  error  Missing trailing comma                    comma-dangle

@wraithgar
Copy link
Member

I suppose there is no need for the glob. I wonder if there used to be non .js files in there the glob was originally ignoring?

@ruyadorno ruyadorno merged commit 9c46a0a into npm:release-next May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: next These items should be addressed in the next release Release 7.x work is associated with a specific npm 7 release semver:patch semver patch level for changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants