Running `eslint --init` doesn't work
See original GitHub issueSo I’ve installed eslint today (v1.5) and trying to get started with it.
I installed with npm install -g eslint
then I ran eslint --init
I’m then displayed with
? What style of indentation do you use? (Use arrow keys) Tabs Spaces
Arrow keys are unresponsive and pressing enter quits the process and returns me to the command prompt, also no file is created. If I type something then it appears next to the spaces choice.
I’m on Windows 10, using Node v4.0.0 not sure if that matters.
Issue Analytics
- State:
- Created 8 years ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
node.js - ESLint is not working? - Stack Overflow
Project Directory: node node_modules\eslint\bin\eslint.js --init ... Run the command npm run lint in terminal and it should start working.
Read more >Getting Started with ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >VS Code ESLint extension - Visual Studio Marketplace
You can do this by either using the VS Code command Create ESLint configuration or by running the eslint command in a terminal....
Read more >eslint - npm
A bug fix in a rule that results in ESLint reporting more linting errors. A new rule is created. A new option to...
Read more >ESLint 8.0: doesn't work with YarnPnP : WEB-52594 - YouTrack
The plugin does not correctly detect the presence of the eslint package, because it uses some kind of heuristic mechanism instead of interacting...
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 have the issue in Git Bash. But interactive functionality works in Windows PowerShell.
**_root@varunchandran:~#
npm install -g eslint
/home/varun/.npm-global/bin/eslint -> /home/varun/.npm-global/lib/node_modules/eslint/bin/eslint.jsAfter this…
when i try
eslint --init
, it showsNo command ‘eslint’ found,
did you mean: Command ‘nslint’ from package ‘nslint’ (universe) eslint: command not found