standard-engine
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -5,2 +5,6 @@ # standard-engine Change Log | ||
## 1.10.0 2015-07-06 | ||
* Fix bug in custom parser option to make it work. | ||
* Merged from standard: New "globals" option can be set in package.json to define an array of global variables. | ||
## 1.9.0 2015-06-29 | ||
@@ -7,0 +11,0 @@ * merge from latest standard 4.4.1 including: |
18
index.js
@@ -166,6 +166,14 @@ module.exports.cli = require('./bin/cmd') | ||
if (packageOpts) { | ||
// Use ignore patterns from package.json | ||
// Use ignore patterns from package.json ("standard.ignore" property) | ||
if (packageOpts.ignore) addIgnorePattern(packageOpts.ignore) | ||
// Use custom js parser from package.json | ||
// Use globals from package.json ("standard.global" property) | ||
var globals = packageOpts.globals || packageOpts.global | ||
if (globals) { | ||
self.eslintConfig.globals = Array.isArray(globals) | ||
? globals | ||
: [ globals ] | ||
} | ||
// Use custom js parser from package.json ("standard.parser" property) | ||
if (!opts.parser && packageOpts.parser) useCustomParser(packageOpts.parser) | ||
@@ -187,5 +195,5 @@ } | ||
fs.writeFileSync(tmpFilename, JSON.stringify(configFile)) | ||
opts._config = opts._config || {} // default _config property if not present | ||
opts._config.configFile = tmpFilename | ||
console.log(tmpFilename) | ||
self.eslintConfig = self.eslintConfig || {} // default _config property if not present | ||
self.eslintConfig.configFile = tmpFilename | ||
} | ||
@@ -192,0 +200,0 @@ |
{ | ||
"name": "standard-engine", | ||
"description": "Wrap your standards in a tortilla and cover it in special sauce.", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"author": "Dan Flettre <flettre@gmail.com> (http://twitter.com/flettre/)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
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
25963
568