diff --git a/lefthook.yml b/lefthook.yml index 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/javascripts eslint-test-js: