question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

eslint@4.1.1 --init installs eslint@3.19.0

See original GitHub issue

Originally 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nzakascommented, Jul 7, 2017

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.

0reactions
nzakascommented, Jul 9, 2017

@mysticatea I think we need to be more explicit:

The style guide Airbnb requires eslint@3.9.0. You are currently using eslint@4.1.0. Do you want to downgrade?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found