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.

Cannot use arrow keys to choose options on `eslint --init` on Windows

See original GitHub issue

What 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
platinumazurecommented, Apr 4, 2016

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.)

0reactions
jokeyrhymecommented, Jun 2, 2016

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?

Read more comments on GitHub >

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

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