Skip to content

Commit

Permalink
fix: run stylelint before prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay authored and ismay committed May 28, 2024
1 parent cc226f7 commit f098adf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/commands/types/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f098adf

Please sign in to comment.