Skip to content

chore: update prettier globs for lint-staged #14941

Closed
nschonni wants to merge 1 commit intowebpack:mainfrom
nschonni:prettier-globs
Closed

chore: update prettier globs for lint-staged #14941
nschonni wants to merge 1 commit intowebpack:mainfrom
nschonni:prettier-globs

Conversation

@nschonni
Copy link
Contributor

@nschonni nschonni commented Dec 10, 2021

Update .prettierignore so prettier -w . only produces the current diff.
Updated the lint-staged hook now that only intended files are caught.

What kind of change does this PR introduce?

Chore/whitespace changes for moving forward

Did you add tests for your changes?

Does this PR introduce a breaking change?

No

What needs to be documented once your changes are merged?

None

Update `.prettierignore` so `prettier -w .` only produces the current diff.
Updated the lint-staged hook now that only intended files are caught.
@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

"*.{ts,json,yml,yaml,md}|examples/*.md": [
"prettier --check"
"*": [
"prettier --check --ignore-unknown"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might be better to change this to --write so it just autofixes the prettier issues instead of failing the commit

@nschonni nschonni deleted the prettier-globs branch April 14, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants