@fimbul/wotan
Advanced tools
Comparing version 0.22.0-dev.20190816 to 0.22.0-dev.20191009
{ | ||
"name": "@fimbul/wotan", | ||
"version": "0.22.0-dev.20190816", | ||
"version": "0.22.0-dev.20191009", | ||
"description": "Pluggable TypeScript and JavaScript linter", | ||
@@ -5,0 +5,0 @@ "bin": "bin/main.js", |
@@ -103,6 +103,8 @@ "use strict"; | ||
log('Linting file %s', sourceFile.fileName); | ||
if (programFactory !== undefined && /\.jsx?/.test(sourceFile.fileName)) { | ||
if (programFactory !== undefined) { | ||
const directive = tsutils_1.getCheckJsDirective(sourceFile.text); | ||
if (directive === undefined ? !tsutils_1.isCompilerOptionEnabled(programFactory.getCompilerOptions(), 'checkJs') : !directive.enabled) { | ||
log('Not using type information for this unchecked JS file'); | ||
if (directive !== undefined | ||
? !directive.enabled | ||
: /\.jsx?/.test(sourceFile.fileName) && !tsutils_1.isCompilerOptionEnabled(programFactory.getCompilerOptions(), 'checkJs')) { | ||
log('Not using type information for this unchecked file'); | ||
programFactory = undefined; | ||
@@ -109,0 +111,0 @@ suppressMissingTypeInfoWarning = true; |
@@ -5,3 +5,2 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
"use strict"; | ||
const ymir_1 = require("@fimbul/ymir"); | ||
@@ -8,0 +7,0 @@ const fs = require("fs"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
333896
4137