A platform for community discussion. Free, open, simple.
DEV: Lint SCSS with prettier in pre-commit (#15033)
Martin Brennandf6003aef50c
diff --git a/lefthook.yml b/lefthook.ymlindex 534e33e87bd..41978efbf70 100644--- a/lefthook.yml+++ b/lefthook.yml@@ -8,6 +8,10 @@ pre-commit:glob: "*.js"include: "app/assets/javascripts|test/javascripts"run: yarn pprettier --list-different {staged_files}+ prettier-scss:+ glob: "*.scss"+ include: "app/assets/stylesheets"+ run: yarn pprettier --list-different {staged_files}eslint:glob: "*.js"include: "app/assets/javascripts|test/javascripts"@@ -51,6 +55,10 @@ lints:glob: "*.js"include: "app/assets/javascripts|test/javascripts"run: yarn pprettier --list-different {all_files}+ prettier-scss:+ glob: "*.scss"+ include: "app/assets/stylesheets"+ run: yarn pprettier --list-different {all_files}eslint-assets-js:run: yarn eslint app/assets/javascriptseslint-test-js: