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

chore: add scripts to fix lint #513

Merged

Conversation

ersachin3112
Copy link
Contributor

@ersachin3112 ersachin3112 commented May 5, 2023

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

add scripts to fix lint

Breaking Changes

No

Additional Info

No

@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (783ad26) 93.33% compared to head (2d245c0) 93.33%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #513   +/-   ##
=======================================
  Coverage   93.33%   93.33%           
=======================================
  Files           4        4           
  Lines         150      150           
  Branches       33       33           
=======================================
  Hits          140      140           
  Misses         10       10           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

package.json Outdated
@@ -26,6 +26,9 @@
"lint:js": "eslint --cache .",
"lint:spelling": "cspell \"**/*.*\"",
"lint": "npm-run-all -l -p \"lint:**\"",
"fix:js": "npm run lint:js -- --fix",
"fix:prettier": "npm run lint:prettier -- --write",
"fix": "npm-run-all -l -p \"fix:**\"",
Copy link
Member

Choose a reason for hiding this comment

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

hm, I think I was wrong, we can't use -p flag with prettier and eslint, we should run eslint firstly and then prettier

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"fix": "npm-run-all -l -p \"fix:**\"",
"fix": "npm-run-all -l fix:js fix:prettier",

@alexander-akait alexander-akait merged commit 5593ee6 into webpack-contrib:master May 6, 2023
@ersachin3112 ersachin3112 deleted the add-fix-scripts branch September 5, 2023 00:15
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.

3 participants