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

Lint-staged for pug in tikui #11150

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Lint-staged for pug in tikui #11150

merged 1 commit into from
Oct 18, 2024

Conversation

qmonmert
Copy link
Contributor

Fix #10945

@@ -41,6 +41,7 @@ public class TikuiModuleFactory {
//@formatter:off
public JHipsterModule buildModule(JHipsterModuleProperties properties) {
return moduleBuilder(properties)
.preCommitActions(stagedFilesFilter("{src/**/,}*.pug"), preCommitCommands("eslint --fix", "prettier --write"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be sufficient:

Suggested change
.preCommitActions(stagedFilesFilter("{src/**/,}*.pug"), preCommitCommands("eslint --fix", "prettier --write"))
.preCommitActions(stagedFilesFilter("*.pug"), preCommitCommands("eslint --fix", "prettier --write"))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes it works, I update

@qmonmert qmonmert marked this pull request as ready for review October 18, 2024 19:48
@murdos murdos enabled auto-merge October 18, 2024 20:24
@murdos murdos merged commit 1271cbb into jhipster:main Oct 18, 2024
35 checks passed
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.

Lint-staged for pug in tikui
2 participants