diff options
-rw-r--r-- | .prettierignore | 4 | ||||
-rw-r--r-- | scripts/frontend/prettier.js | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/.prettierignore b/.prettierignore index b674ccd50cf..dc9e572ab54 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,3 +3,7 @@ /public/ /vendor/ /tmp/ + +# ignore stylesheets for now as this clashes with our linter +*.css +*.scss diff --git a/scripts/frontend/prettier.js b/scripts/frontend/prettier.js index 06e3b1ac0dc..912cfacce25 100644 --- a/scripts/frontend/prettier.js +++ b/scripts/frontend/prettier.js @@ -3,7 +3,7 @@ const prettier = require('prettier'); const fs = require('fs'); const { getStagedFiles } = require('./frontend_script_utils'); -const TARGET_EXTENSIONS = ['js', 'vue', 'scss']; +const TARGET_EXTENSIONS = ['js', 'json', 'vue']; // This will improve glob performance by excluding certain directories. // The .prettierignore file will also be respected, but after the glob has executed. |