Skip to content

Commit

Permalink
Merge pull request #11159 from qmonmert/fix/10944
Browse files Browse the repository at this point in the history
Add lint-staged for css/scss in tikui module
  • Loading branch information
murdos authored Oct 19, 2024
2 parents 1550be1 + 0e9d7a2 commit d750678
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class TikuiModuleFactory {
public JHipsterModule buildModule(JHipsterModuleProperties properties) {
return moduleBuilder(properties)
.preCommitActions(stagedFilesFilter("*.pug"), preCommitCommands("prettier --write"))
.preCommitActions(stagedFilesFilter("*.{css,scss}"), preCommitCommands("stylelint --fix --allow-empty-input", "prettier --write"))
.packageJson()
.addDependency(packageName("@tikui/core"), COMMON)
.addDevDependency(packageName("@prettier/plugin-pug"), COMMON)
Expand Down

0 comments on commit d750678

Please sign in to comment.