coffeelint
Advanced tools
Comparing version 1.15.7 to 1.16.0
@@ -119,3 +119,3 @@ | ||
jsonIndentation = text.split('\n')[1].match(/^\s+/)[0].length; | ||
} catch (undefined) {} | ||
} catch (error) {} | ||
return JSON.parse(stripComments(text)); | ||
@@ -176,6 +176,7 @@ }; | ||
SelectedReporter = (ref = coreReporters[strReporter]) != null ? ref : (function() { | ||
var error, reporterPath; | ||
var reporterPath; | ||
try { | ||
reporterPath = resolve(strReporter, { | ||
basedir: process.cwd() | ||
basedir: process.cwd(), | ||
extensions: ['.js', '.coffee', '.litcoffee', '.coffee.md'] | ||
}); | ||
@@ -182,0 +183,0 @@ } catch (error) { |
@@ -46,3 +46,3 @@ | ||
loadJSON = function(filename) { | ||
var e, error; | ||
var e; | ||
try { | ||
@@ -86,3 +86,4 @@ return JSON.parse(stripComments(fs.readFileSync(filename).toString())); | ||
config[ruleName].module = resolve(data.module, { | ||
basedir: dir | ||
basedir: dir, | ||
extensions: ['.js', '.coffee', '.litcoffee', '.coffee.md'] | ||
}); | ||
@@ -95,3 +96,4 @@ } | ||
return resolve(moduleName, { | ||
basedir: dir | ||
basedir: dir, | ||
extensions: ['.js', '.coffee', '.litcoffee', '.coffee.md'] | ||
}); | ||
@@ -103,3 +105,4 @@ }); | ||
coffeelint.coffeescript = resolve(coffeelint.coffeescript, { | ||
basedir: dir | ||
basedir: dir, | ||
extensions: ['.js', '.coffee', '.litcoffee', '.coffee.md'] | ||
}); | ||
@@ -106,0 +109,0 @@ } |
@@ -13,12 +13,13 @@ (function() { | ||
rulePath = resolve(moduleName, { | ||
basedir: process.cwd() | ||
basedir: process.cwd(), | ||
extensions: ['.js', '.coffee', '.litcoffee', '.coffee.md'] | ||
}); | ||
return require(rulePath); | ||
} catch (undefined) {} | ||
} catch (error) {} | ||
try { | ||
return require(moduleName); | ||
} catch (undefined) {} | ||
} catch (error) {} | ||
try { | ||
return require(path.resolve(process.cwd(), moduleName)); | ||
} catch (undefined) {} | ||
} catch (error) {} | ||
return require(moduleName); | ||
@@ -38,3 +39,3 @@ }, | ||
loadRule: function(coffeelint, moduleName, ruleName) { | ||
var e, error, i, len, results, rule, ruleModule; | ||
var e, i, len, results, rule, ruleModule; | ||
if (ruleName == null) { | ||
@@ -41,0 +42,0 @@ ruleName = void 0; |
{ | ||
"name": "coffeelint", | ||
"description": "Lint your CoffeeScript", | ||
"version": "1.15.7", | ||
"version": "1.16.0", | ||
"homepage": "http://www.coffeelint.org", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"dependencies": { | ||
"coffee-script": "~1.10.0", | ||
"glob": "^4.0.0", | ||
"coffee-script": "~1.11.0", | ||
"glob": "^7.0.6", | ||
"ignore": "^3.0.9", | ||
@@ -34,3 +34,3 @@ "optimist": "^0.6.1", | ||
"devDependencies": { | ||
"vows": ">=0.6.0", | ||
"vows": ">=0.8.1", | ||
"underscore": ">=1.4.4" | ||
@@ -37,0 +37,0 @@ }, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
154294
3643
0
+ Addedcoffee-script@1.11.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
- Removedcoffee-script@1.10.0(transitive)
- Removedglob@4.5.3(transitive)
- Removedminimatch@2.0.10(transitive)
Updatedcoffee-script@~1.11.0
Updatedglob@^7.0.6