@fimbul/bifrost
Advanced tools
Comparing version 0.4.0-dev.20180227 to 0.4.0-dev.20180228
{ | ||
"name": "@fimbul/bifrost", | ||
"version": "0.4.0-dev.20180227", | ||
"version": "0.4.0-dev.20180228", | ||
"description": "Compatibility layer for TSLint rules", | ||
@@ -28,3 +28,3 @@ "main": "src/index", | ||
"peerDependencies": { | ||
"@fimbul/wotan": "0.4.0-dev.20180227", | ||
"@fimbul/wotan": "0.4.0-dev.20180228", | ||
"tslint": "^5.0.0", | ||
@@ -31,0 +31,0 @@ "typescript": "^2.4.1 || >= 2.8.0-dev" |
@@ -19,7 +19,2 @@ "use strict"; | ||
} | ||
static supports(sourceFile) { | ||
if (Rule.metadata && Rule.metadata.typescriptOnly) | ||
return /\.tsx?$/.test(sourceFile.fileName); | ||
return true; | ||
} | ||
apply() { | ||
@@ -48,2 +43,5 @@ if (!this.delegate.isEnabled()) | ||
: false, | ||
_a.supports = Rule.metadata && Rule.metadata.typescriptOnly | ||
? (sourceFile) => /\.tsx?$/.test(sourceFile.fileName) | ||
: undefined, | ||
_a; | ||
@@ -50,0 +48,0 @@ var _a; |
Sorry, the diff of this file is not supported yet
23216
96