grunt-import-clean
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "grunt-import-clean", | ||
"description": "identify unused imports in es6 modules", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"homepage": "https://github.com/elnarddogg/grunt-import-clean", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -22,6 +22,5 @@ module.exports = function( grunt ) { | ||
var that = this; | ||
var options = that.options(); | ||
var options = that.options({ test: false, force: false }); | ||
var data = shared.ensureArray( that.data ); | ||
var testAdaptor = options.test ? new TestAdaptor( __dirname ) : testAdaptor; | ||
var force = options.force !== undefined ? options.force : true; | ||
@@ -75,3 +74,3 @@ var files = data.reduce(function( prev , current ) { | ||
// this handles the force option politely. | ||
if (force) { | ||
if (options.force) { | ||
util.puts(( 'Warning: ' + msg ).yellow ); | ||
@@ -78,0 +77,0 @@ } |
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
26173
856