eslint@4.1.1 --init installs eslint@3.19.0
See original GitHub issueOriginally reported on Stack Overflow.
Tell us about your environment
- ESLint Version: 4.1.1
- Node Version: 7.10.0
- npm Version: 4.6.1
What parser (default, Babel-ESLint, etc.) are you using? n/a
Please show your full configuration: n/a
What did you do? Please include the actual source code causing the issue.
~$ mkdir test
~$ cd test
~/test$ echo '{ "private": true }' > package.json
~/test$ npm install --save-dev eslint
# ...
~/test$ node --version
v7.10.0
~/test$ npm --version
4.6.1
~/test$ node_modules/.bin/eslint --version
v4.1.1
~/test$ node_modules/.bin/eslint --init
? How would you like to configure ESLint? Use a popular style guide
? Which style guide do you want to follow? Airbnb
? Do you use React? No
? What format do you want your config file to be in? JavaScript
Checking peerDependencies of eslint-config-airbnb-base
Installing eslint-config-airbnb-base@latest, eslint@^3.19.0, eslint-plugin-import@^2.2.0
# ...
Successfully created .eslintrc.js file in ~/test
~/test$ node_modules/.bin/eslint --version
v3.19.0
What did you expect to happen?
eslint@4.1.1
is still installed.
What actually happened? Please include the actual, raw output from ESLint.
eslint@3.19.0
is installed.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
eslint - npm
Start using eslint in your project by running `npm i eslint`. There are 19574 other projects in the npm registry using eslint.
Read more >Getting Started with ESLint - Pluggable JavaScript Linter
You can install and configure ESLint using this command: npm init @eslint/config. 1. If you want to use a specific shareable config that...
Read more >Eslint version automatically downgrading on init - Stack Overflow
I follow the instructions to use Airbnb codestyle and i get downgraded to version 3.19.0. How can i get it to use version...
Read more >Changelog - JavaScript Standard Style
Update ESLint from 3.15.x to 3.19.x. Node.js API: Add standard.lintTextSync method. New rules. (Estimated % of affected ...
Read more >redux-firebase/Lobby - Gitter
npm WARN eslint-config-standard@10.2.1 requires a peer of eslint@>=3.19.0 but none is installed. You must install peer dependencies yourself.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This still seems like a bug to me. It might be doing the right thing to make stuff work, but I don’t think we should be installing a different version of ESLint during
--init
. I’d rather see an error message output.@mysticatea I think we need to be more explicit: