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) {