diff --git a/bin.js b/bin.js index be20399..50cf47b 100755 --- a/bin.js +++ b/bin.js @@ -32,14 +32,14 @@ function getConfigFile() { } } -function getConfig(configFile) { +function getConfig(file) { var cliEngine = new eslint.CLIEngine({ // ignore any config applicable depending on the location on the filesystem useEslintrc: false, // point to the particular config - configFile, + configFile: file, }) - var config = cliEngine.getConfigForFile(configFile) + var config = cliEngine.getConfigForFile(file) return config }