build: npm lint to properly find files on Win OS #488
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was on my Windows 10 machine going down the rabbit hole of GH OpenAPI spec typedefs and realized that the lint (prettier) functionality doesn't work on Windows machines for this repository.
My first thought was that it was broken all around but on non-Windows machines I realized it was working!
I have not created an issue for this as I had already figured it out before getting to the point of PR creation. If you'd like me to create an issue and link it to this PR just let me know.
Behavior
Before the change?
Changing the prettier files list being wrapped with single quotes to escaped double quotes. Before it would not find any files, which afterwards I found seems to catch others as well.
After the change?
Now prettier should work in both Windows and Unix environments.
Other information
OS - Windows 10
Node - v16.13.0
Additional info
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Type: Breaking changelabel)If
Yes, what's the impact:Pull request type
Please add the corresponding label for change this PR introduces:
Type: BugType: FeatureType: DocumentationType: Maintenance