coffeelint
Advanced tools
Comparing version 1.16.0 to 1.16.2
@@ -119,3 +119,3 @@ | ||
jsonIndentation = text.split('\n')[1].match(/^\s+/)[0].length; | ||
} catch (error) {} | ||
} catch (_error) {} | ||
return JSON.parse(stripComments(text)); | ||
@@ -182,3 +182,3 @@ }; | ||
}); | ||
} catch (error) { | ||
} catch (_error) { | ||
reporterPath = strReporter; | ||
@@ -185,0 +185,0 @@ } |
@@ -49,4 +49,4 @@ | ||
return JSON.parse(stripComments(fs.readFileSync(filename).toString())); | ||
} catch (error) { | ||
e = error; | ||
} catch (_error) { | ||
e = _error; | ||
process.stderr.write("Could not load JSON file '" + filename + "': " + e); | ||
@@ -53,0 +53,0 @@ return null; |
@@ -17,9 +17,9 @@ (function() { | ||
return require(rulePath); | ||
} catch (error) {} | ||
} catch (_error) {} | ||
try { | ||
return require(moduleName); | ||
} catch (error) {} | ||
} catch (_error) {} | ||
try { | ||
return require(path.resolve(process.cwd(), moduleName)); | ||
} catch (error) {} | ||
} catch (_error) {} | ||
return require(moduleName); | ||
@@ -55,4 +55,4 @@ }, | ||
} | ||
} catch (error) { | ||
e = error; | ||
} catch (_error) { | ||
e = _error; | ||
console.error("Error loading " + moduleName); | ||
@@ -59,0 +59,0 @@ throw e; |
{ | ||
"name": "coffeelint", | ||
"description": "Lint your CoffeeScript", | ||
"version": "1.16.0", | ||
"version": "1.16.2", | ||
"homepage": "http://www.coffeelint.org", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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
154566
3653
23