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

eslint --init alwalys fails #11970

Closed
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly cli Relates to ESLint's command-line interface

Comments

@raind33
Copy link

raind33 commented Jul 9, 2019

Tell us about your environment

  • **ESLint Version:**v6.0.1
  • **Node Version:**v10.14.0
  • **npm Version:**6.4.1

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
eslint --init

? How would you like to use ESLint? To check syntax, find problems, and enforce code style
? What type of modules does your project use? JavaScript modules (import/export)
? Which framework does your project use? Vue.js
? Where does your code run? (Press <space> to select, <a> to toggle all, <i> to invert selection)Browser
? How would you like to define a style for your project? Use a popular style guide
? Which style guide do you want to follow? Standard (https://github.com/standard/standard)
? What format do you want your config file to be in? JSON
Checking peerDependencies of eslint-config-plugin:vue/essential,standard@latest
Local ESLint installation not found.
The config that you've selected requires the following dependencies:

eslint-plugin-vue@latest eslint-config-plugin:vue/essential,standard@latest error@[object Object] eslint@latest
? Would you like to install them now with npm? Yes
Installing eslint-plugin-vue@latest, eslint-config-plugin:vue/essential,standard@latest, error@[object Object], eslint@latest
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "[object Object]": Tags may not have any characters that encodeURIComponent encodes.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-07-09T02_28_04_967Z-debug.log
Successfully created .eslintrc.json file in G:\user\esli
ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.

What did you expect to happen?
ESLint inits successfully.

What actually happened? Please include the actual, raw output from ESLint.
When i install the dependences, always encounter the above errors. In issues i have seen the same question, but i still do not understand the question and find the solution. And i have used different computers, such as windows, mac, but they still have the question.

Are you willing to submit a pull request to fix this bug?
no idea

@raind33 raind33 added bug ESLint is working incorrectly triage An ESLint team member will look at this issue soon labels Jul 9, 2019
@mysticatea mysticatea added accepted There is consensus among the team that this change meets the criteria for inclusion cli Relates to ESLint's command-line interface and removed triage An ESLint team member will look at this issue soon labels Jul 9, 2019
@mysticatea
Copy link
Member

Thank you for your report.

I confirmed --init failed (but another error).

image

@raind33
Copy link
Author

raind33 commented Jul 9, 2019

Thank you for your report.

I confirmed --init failed (but another error).

image
I met what you said. The first init is the same question,but after the first time, it is always my asked question.

kaicataldo pushed a commit that referenced this issue Jul 16, 2019
* Fix: --init with Vue.js failed (fixes #11970)

* move 'naming.js' to 'shared' directory

* use naming utility
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Jan 13, 2020
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Jan 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.