From 0e9d7a282f13fa92a2d5239a8be389d7a6b7513a Mon Sep 17 00:00:00 2001 From: Quentin Date: Sat, 19 Oct 2024 13:55:33 +0200 Subject: [PATCH] Add lint-staged for css/scss in tikui module --- .../lite/generator/client/tikui/domain/TikuiModuleFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/tech/jhipster/lite/generator/client/tikui/domain/TikuiModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/client/tikui/domain/TikuiModuleFactory.java index 3a560053909..6dd55e889be 100644 --- a/src/main/java/tech/jhipster/lite/generator/client/tikui/domain/TikuiModuleFactory.java +++ b/src/main/java/tech/jhipster/lite/generator/client/tikui/domain/TikuiModuleFactory.java @@ -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)