From a8f2892ddccc89d8b0b2a25fd3ea72ca6d6b432f Mon Sep 17 00:00:00 2001 From: Yanick Landry Date: Mon, 17 Dec 2018 20:10:18 +0800 Subject: [PATCH] added less files and config files to the prettier script (#3154) --- scripts/prettier.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/prettier.js b/scripts/prettier.js index c7e8cf80..86d1a3de 100644 --- a/scripts/prettier.js +++ b/scripts/prettier.js @@ -16,8 +16,12 @@ let didError = false; let files = []; const jsFiles = glob.sync('src/**/*.js*', { ignore: ['**/node_modules/**', 'build/**'] }); const tsFiles = glob.sync('src/**/*.ts*', { ignore: ['**/node_modules/**', 'build/**'] }); +const configFiles = glob.sync('config/**/*.js*', { ignore: ['**/node_modules/**', 'build/**'] }); +const lessFiles = glob.sync('src/**/*.less*', { ignore: ['**/node_modules/**', 'build/**'] }); files = files.concat(jsFiles); files = files.concat(tsFiles); +files = files.concat(configFiles); +files = files.concat(lessFiles); if (!files.length) { return; } -- GitLab