Global standard doesn't find global babel-eslint since version 13Β #1328
Open
Description
What version of standard?
13.0.1
What operating system, Node.js, and npm version?
Arch Linux (locally) and Docker image circleci/ruby:2.5.3-node-browsers
.
Node: 11.15.0
npm: 6.10.0
babel-eslint: 10.0.2
What did you expect to happen?
npm install -g standard babel-eslint
to install compatible versions of both.
What actually happened?
Running standard --parser babel-eslint [files]
throws an error:
standard: Unexpected linter output:
Error: Failed to load parser 'babel-eslint' declared in 'CLIOptions': Cannot find module 'babel-eslint'
Require stack:
- /home/helge/code/combostrike/backoffice/__placeholder__.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
at Function.resolve (internal/modules/cjs/helpers.js:19:19)
at Object.resolve (/home/helge/.node_modules/lib/node_modules/standard/node_modules/eslint/lib/shared/relative-module-resolver.js:44:50)
at ConfigArrayFactory._loadParser (/home/helge/.node_modules/lib/node_modules/standard/node_modules/eslint/lib/cli-engine/config-array-factory.js:752:45)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/home/helge/.node_modules/lib/node_modules/standard/node_modules/eslint/lib/cli-engine/config-array-factory.js:550:32)
at _normalizeObjectConfigDataBody.next (<anonymous>)
at ConfigArrayFactory._normalizeObjectConfigData (/home/helge/.node_modules/lib/node_modules/standard/node_modules/eslint/lib/cli-engine/config-array-factory.js:491:20)
at _normalizeObjectConfigData.next (<anonymous>)
at createConfigArray (/home/helge/.node_modules/lib/node_modules/standard/node_modules/eslint/lib/cli-engine/config-array-factory.js:307:25)
at ConfigArrayFactory.create (/home/helge/.node_modules/lib/node_modules/standard/node_modules/eslint/lib/cli-engine/config-array-factory.js:362:16)
If you think this is a bug in `standard`, open an issue: https://github.com/standard/standard/issues
Workaround
Installing standard
version <13
works fine.
Edit: Added the name of the Docker image we use in our CI.
Metadata
Assignees
Type
Projects
Status
No status