Cannot use arrow keys to choose options on `eslint --init` on Windows
See original GitHub issueWhat version of ESLint are you using? v2.6.0 What parser (default, Babel-ESLint, etc.) are you using? none yet Please show your full configuration: none yet What did you do? Please include the actual source code causing the issue.
filipe.silva@DESKTOP-7ND6T3R MINGW64 ~
$ npm install -g eslint
(...)
filipe.silva@DESKTOP-7ND6T3R MINGW64 ~
$ eslint --init
? How would you like to configure ESLint? (Use arrow keys)
> Answer questions about your style
Use a popular style guide
Inspect your JavaScript file(s)
What did you expect to happen? Expected to be able to choose second option using arrow keys. What actually happened? Please include the actual, raw output from ESLint. Could not choose any option using arrow keys on the first prompt. Subsequent prompts I was able to use arrow keys.
This happened on a win10 system, using both gitbash and cmd.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Can't use arrow keys in Git Bash (Windows) - Stack Overflow
Solution for me: In webstorm console everything is working correctly, after changing eslint.
Read more >How to setup ESLint and Prettier on Node - SourceLevel
In this article, I explain how to set up and configure ESLint and Prettier for a Node application. First, I list the requirements....
Read more >ESLint + VSCode: How to Format Your Code Using .eslintrc
1. Install VSCode ESLint Plugin ... In VSCode, open the extension browser with the button on the left. On the Mac, the keyboard...
Read more >Vue-Cli: Arrow Key Not Working While Creating New Project ...
On Windows 10 when starting new projects I encounter the problem of not being able to use arrow keys to select options in...
Read more >Language Options - ESLint - Pluggable JavaScript Linter
Using configuration files. To configure global variables inside of a configuration file, set the globals configuration property to an object containing keys ......
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 FreeTop 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
Top GitHub Comments
I think as a workaround, you can use numbers plus the Enter key. There’s one question where it says use a space to select (Node vs Browser), in which case the sequence is something like 2-space-enter.
Unintuitive, I know, but it might get you on your way. (I’m using Windows 7, though, so maybe not.)
I have a module that helps identify broken versions of Node:
Do you think it might be worth integrating a similar check into this library? So that a warning or something could be displayed? Or perhaps modifying the “engines” part of package.json to help avoid broken Node versions at installation time?