diff --git a/package.json b/package.json index 4f1d438a..e1f0f4c6 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "fs-extra": "7.0.1", "jest": "24.5.0", "pstree.remy": "1.1.2", - "strip-ansi": "5.0.0", + "strip-ansi": "5.2.0", "text-table": "0.2.0", "ts-jest": "24.0.0", "ts-loader": "5.3.3", diff --git a/src/lib/formatters/lintTableFormatter.ts b/src/lib/formatters/lintTableFormatter.ts index d1447994..55b11bc6 100644 --- a/src/lib/formatters/lintTableFormatter.ts +++ b/src/lib/formatters/lintTableFormatter.ts @@ -1,7 +1,7 @@ import * as Lint from 'tslint' import chalk from 'chalk' import textTable from 'text-table' -const stripAnsi = require('strip-ansi') +import stripAnsi from 'strip-ansi' export class Formatter extends Lint.Formatters.AbstractFormatter { private formatFailure(failure: Lint.RuleFailure): string[] { diff --git a/yarn.lock b/yarn.lock index 47e472f1..9ba50172 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6746,12 +6746,12 @@ stringify-object@^3.2.2: is-obj "^1.0.1" is-regexp "^1.0.0" -strip-ansi@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.0.0.tgz#f78f68b5d0866c20b2c9b8c61b5298508dc8756f" - integrity sha512-Uu7gQyZI7J7gn5qLn1Np3G9vcYGTVqB+lFTytnDJv83dd8T22aGH451P3jueT2/QemInJDfxHB5Tde5OzgG1Ow== +strip-ansi@5.2.0, strip-ansi@^5.0.0, strip-ansi@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" + integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== dependencies: - ansi-regex "^4.0.0" + ansi-regex "^4.1.0" strip-ansi@^3.0.0, strip-ansi@^3.0.1: version "3.0.1" @@ -6767,13 +6767,6 @@ strip-ansi@^4.0.0: dependencies: ansi-regex "^3.0.0" -strip-ansi@^5.0.0, strip-ansi@^5.1.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" - integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== - dependencies: - ansi-regex "^4.1.0" - strip-bom@3.0.0, strip-bom@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"