From f098adf378fc6e67bf6cc291c55ed540cd3fda00 Mon Sep 17 00:00:00 2001 From: ismay Date: Tue, 28 May 2024 10:07:11 +0200 Subject: [PATCH] fix: run stylelint before prettier --- src/commands/types/javascript.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/commands/types/javascript.js b/src/commands/types/javascript.js index c6a5d018..6a70e94a 100644 --- a/src/commands/types/javascript.js +++ b/src/commands/types/javascript.js @@ -68,26 +68,26 @@ exports.handler = (argv, callback) => { log.log('No ESLint configuration found') } - if (configured('prettier')) { - log.info('javascript > prettier') - prettier({ + if (configured('stylelint')) { + log.info('javascript > stylelint') + stylelint({ apply, files: jsFiles, callback: finalStatus, }) } else { - log.log('No Prettier configuration found') + log.log('No Stylelint configuration found') } - if (configured('stylelint')) { - log.info('javascript > stylelint') - stylelint({ + if (configured('prettier')) { + log.info('javascript > prettier') + prettier({ apply, files: jsFiles, callback: finalStatus, }) } else { - log.log('No Stylelint configuration found') + log.log('No Prettier configuration found') } if (!callback) {