feat: create update notifier for cli (#1090)

This commit is contained in:
Ihor Karpiuk
2023-05-24 12:39:15 +03:00
committed by GitHub
parent 0e714f97e8
commit c7412bb3d1
7 changed files with 169 additions and 23 deletions

View File

@@ -470,3 +470,8 @@ export function checkIfRulesetExist(rules: typeof StyleguideConfig.prototype.rul
);
}
}
export function cleanColors(input: string): string {
// eslint-disable-next-line no-control-regex
return input.replace(/\x1b\[\d+m/g, '');
}