File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { REPO_ROOT } from "@/constants.ts";
22
33import { parseArgs } from "@std/cli" ;
44import * as path from "@std/path" ;
5+ import * as color from "@std/fmt/colors" ;
56// @ts -types="npm:@types/less";
67import less from "less" ;
78
@@ -64,4 +65,16 @@ for (const style of stylesheets) {
6465if ( await checkForMissingFiles ( ) === false ) didLintFail = true ;
6566
6667// Cause the workflow to fail if any issues were found.
67- if ( didLintFail || log . failed ) Deno . exit ( 1 ) ;
68+
69+ const THIN_SPACE = "\u2009" ;
70+
71+ if ( didLintFail || log . failed ) {
72+ if ( ! args . fix ) {
73+ console . log (
74+ `\n ${
75+ color . bold ( color . inverse ( color . green ( `${ THIN_SPACE } TIP${ THIN_SPACE } ` ) ) )
76+ } Run ${ color . bold ( "deno task lint:fix" ) } to fix autofixable issues.`,
77+ ) ;
78+ }
79+ Deno . exit ( 1 ) ;
80+ }
You can’t perform that action at this time.
0 commit comments