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

Commit

Permalink
feat: support tslint 6
Browse files Browse the repository at this point in the history
BREAKING CHANGES now tslint 6 is used by default
  • Loading branch information
aminya committed Apr 5, 2021
1 parent 9cf6de5 commit cfec59d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function resolveAndCacheLinter(fileDir: string, moduleDir?: string): Promise<typ
{ basedir },
(err, linterPath, pkg) => {
let linter: typeof Tslint.Linter;
if (!err && pkg && /^3|4|5\./.test(pkg.version)) {
if (!err && pkg && /^3|4|5|6\./.test(pkg.version)) {
if (pkg.version.startsWith('3')) {
// eslint-disable-next-line import/no-dynamic-require
linter = shim(require('loophole').allowUnsafeNewFunction(() => require(linterPath) as typeof import("tslint")));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"crypto-random-string": "3.3.1",
"loophole": "1.1.0",
"resolve": "1.20.0",
"tslint": "5.20.1",
"tslint": "^6",
"tslint-rule-documentation": "1.0.3",
"typescript": "4.2.3"
},
Expand Down
14 changes: 8 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cfec59d

Please sign in to comment.