Skip to content

Commit 94a033a

Browse files
chore(scripts): Change order of execution when running lint
1 parent 41a2348 commit 94a033a

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.changeset/witty-icons-shave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tcd-devkit/scripts': minor
3+
---
4+
5+
Changed order of execution when running lint

packages/scripts/src/commands/lint.command.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ export const registerLintCommand = (program: Command) => {
3737
const toolsToRun = getToolsToRun(LINT_TOOLS, options);
3838
let overallSuccess = true;
3939

40-
if (toolsToRun.includes('prettier')) {
41-
overallSuccess &&= await runPrettier(files, options, true);
42-
}
4340
if (toolsToRun.includes('eslint')) {
4441
overallSuccess &&= await runEslint(files, options, false);
4542
}
43+
if (toolsToRun.includes('prettier')) {
44+
overallSuccess &&= await runPrettier(files, options, true);
45+
}
4646
if (toolsToRun.includes('tsc')) {
4747
overallSuccess &&= await runTsc(options);
4848
}

0 commit comments

Comments
 (0)