Skip to content

eslint@4.1.1 --init installs eslint@3.19.0 #8870

@btmills

Description

@btmills

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlycliRelates to ESLint's command-line interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions