Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use local binary of ESLint instead of global? #87

Open
lukeramsden opened this issue Dec 13, 2018 · 0 comments
Open

Use local binary of ESLint instead of global? #87

lukeramsden opened this issue Dec 13, 2018 · 0 comments

Comments

@lukeramsden
Copy link

Currently having issues with the plugin because it's trying to use the global eslint instead of the local project one:

2018-12-13 12:31:54,073 [INFO] parse input = [<lints.javascript.eslint.EsLint object at 0x7f1c9bf63908>, ["Error: Cannot find module 'vue-eslint-parser'", '    at ModuleResolver.resolve (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/util/module-resolver.js:72:19)', '    at loadFromDisk (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config/config-file.js:514:42)', '    at Object.load (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config/config-file.js:564:20)', '    at Config.getLocalConfigHierarchy (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config.js:240:44)', '    at Config.getConfigHierarchy (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config.js:192:43)', '    at Config.getConfigVector (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config.js:299:21)', '    at Config.getConfig (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config.js:342:29)', '    at processText (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/cli-engine.js:180:33)', '    at CLIEngine.executeOnText (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/cli-engine.js:686:40)', '    at Object.execute (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/cli.js:197:46)'], 1]
2018-12-13 12:31:54,073 [INFO] parse input = [<lints.javascript.eslint.EsLint object at 0x7f1c9bf63908>, ["Error: Cannot find module 'vue-eslint-parser'", '    at ModuleResolver.resolve (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/util/module-resolver.js:72:19)', '    at loadFromDisk (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config/config-file.js:514:42)', '    at Object.load (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config/config-file.js:564:20)', '    at Config.getLocalConfigHierarchy (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config.js:240:44)', '    at Config.getConfigHierarchy (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config.js:192:43)', '    at Config.getConfigVector (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config.js:299:21)', '    at Config.getConfig (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/config.js:342:29)', '    at processText (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/cli-engine.js:180:33)', '    at CLIEngine.executeOnText (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/cli-engine.js:686:40)', '    at Object.execute (/home/luke/.nvm/versions/node/v9.11.2/lib/node_modules/eslint/lib/cli.js:197:46)'], 1]
2018-12-13 12:31:54,073 [INFO] parsed lists = []
2018-12-13 12:31:54,073 [INFO] parsed lists = []

How do I ensure the plugin uses the local ESLint binary and config if it exists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant