diff --git a/bin/plugins/checkPlugin.js b/bin/plugins/checkPlugin.js index 3649e7f01..43fe64ee0 100755 --- a/bin/plugins/checkPlugin.js +++ b/bin/plugins/checkPlugin.js @@ -26,7 +26,7 @@ const pluginPath = `node_modules/${pluginName}`; console.log(`Checking the plugin: ${pluginName}`); -const optArgs = process.argv.slice(3, 0); +const optArgs = process.argv.slice(3); // Should we autofix? const autoFix = optArgs.indexOf('autofix') !== -1;