Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit cfec59d

Browse files
committed
feat: support tslint 6
BREAKING CHANGES now tslint 6 is used by default
1 parent 9cf6de5 commit cfec59d

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

lib/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function resolveAndCacheLinter(fileDir: string, moduleDir?: string): Promise<typ
3535
{ basedir },
3636
(err, linterPath, pkg) => {
3737
let linter: typeof Tslint.Linter;
38-
if (!err && pkg && /^3|4|5\./.test(pkg.version)) {
38+
if (!err && pkg && /^3|4|5|6\./.test(pkg.version)) {
3939
if (pkg.version.startsWith('3')) {
4040
// eslint-disable-next-line import/no-dynamic-require
4141
linter = shim(require('loophole').allowUnsafeNewFunction(() => require(linterPath) as typeof import("tslint")));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"crypto-random-string": "3.3.1",
3232
"loophole": "1.1.0",
3333
"resolve": "1.20.0",
34-
"tslint": "5.20.1",
34+
"tslint": "^6",
3535
"tslint-rule-documentation": "1.0.3",
3636
"typescript": "4.2.3"
3737
},

pnpm-lock.yaml

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)