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 finish file scan in `eslint --init`

See original GitHub issue

What version of ESLint are you using? 2.8.0 What parser (default, Babel-ESLint, etc.) are you using? default Please show your full configuration: none yet What did you do? Please include the actual source code causing the issue.

  1. eslint --init scripts on existing project
  2. I choose to scan my files to determine the best configuration What did you expect to happen? successful finish What actually happened? Please include the actual, raw output from ESLint.
Determining Config: 31% [=========---------------------] 57.2s elapsed, eta 130.1s Cannot read property 'errorCount' of undefined
TypeError: Cannot read property 'errorCount' of undefined
    at C:\Users\khomyackov\AppData\Roaming\npm\node_modules\eslint\lib\config\autoconfig.js:315:68
    at Array.forEach (native)
    at C:\Users\khomyackov\AppData\Roaming\npm\node_modules\eslint\lib\config\autoconfig.js:314:29
    at Array.forEach (native)
    at C:\Users\khomyackov\AppData\Roaming\npm\node_modules\eslint\lib\config\autoconfig.js:310:22
    at Array.forEach (native)
    at Registry.lintSourceCode (C:\Users\khomyackov\AppData\Roaming\npm\node_modules\eslint\lib\config\autoconfig.js:305:19)
    at configureRules (C:\Users\khomyackov\AppData\Roaming\npm\node_modules\eslint\lib\config\config-initializer.js:146:25)
    at processAnswers (C:\Users\khomyackov\AppData\Roaming\npm\node_modules\eslint\lib\config\config-initializer.js:250:18)
    at null.completed (C:\Users\khomyackov\AppData\Roaming\npm\node_modules\eslint\lib\config\config-initializer.js:404:30)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
victor-homyakovcommented, Apr 29, 2016

@IanVS I confirm that your fix solves this issue

0reactions
IanVScommented, Apr 29, 2016

Getting good, detailed bug reports makes me so happy. 😃 Thanks for taking the time to do a little extra troubleshooting.

Hopefully we can squeeze this fix into today’s release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Files - 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 >
ESLINT An error occurred while generating your JavaScript ...
Error: An error occurred while generating your JavaScript config file. A config file was still generated, but the config file itself may not ......
Read more >
How To Lint and Format Code with ESLint in Visual Studio Code
Using the npm init command to initialize your project will create a package.json file in the vscode-eslint-example directory.
Read more >
lint-staged - npm
Install some linters, like ESLint or Prettier ... Note: when used, lint-staged won't perform the config file search and will print an error ......
Read more >
12. How to install npm ESLint plugin in the application and ...
In this video, we will see how to install the npm ESLint plugin from the npm packages and implement the plugin in the...
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