ESLint CLI gives no information about exceptions thrown on plugin load
See original GitHub issueWhat version of ESLint are you using? 2.13.1 (with eslint-plugin-react 6.0.0)
What parser (default, Babel-ESLint, etc.) are you using? Default (this shouldn’t matter)
Please show your full configuration:
{
"plugins": ["react"]
}
What did you do? Please include the actual source code causing the issue.
$ eslint --debug someFile.js
What did you expect to happen?
Plugin loads successfully, or if it fails to load, the exception thrown should show up in eslint --debug
.
What actually happened? Please include the actual, raw output from ESLint.
eslint:cli Running on files +0ms
eslint:ignored-paths Looking for ignore file in /path/to/root +88ms
eslint:ignored-paths Could not find ignore file in cwd +3ms
eslint:glob-util Creating list of files to process. +0ms
eslint:cli-engine Processing /path/to/js/file +23ms
eslint:cli-engine Linting /path/to/js/file +2ms
eslint:config Constructing config for /path/to/js/file +1ms
eslint:config Using .eslintrc and package.json files +0ms
eslint:config Loading /.eslintrc +3ms
eslint:config-file Loading config file: /.eslintrc +1ms
eslint:plugins Failed to load plugin eslint-plugin-react. Proceeding without it. +212ms
With no indication of why the plugin failed to load. In this case, it wasn’t due to the plugin not being available, but rather the require()
failed due to something wrong with the plugin’s main file.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
ESLint not working in VS Code? - Stack Overflow
To verify, press Ctrl + Shift + U in VSCode to open the Output panel after opening a JavaScript file with a known...
Read more >Rules - 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 - npm
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. In many ways, it is similar to JSLint and...
Read more >How I solved and debugged my Webpack issue through trial ...
But I still decided to give it a shot. npm install webpack-serve --save-dev. I created serve.config.js const serve = require('webpack- ...
Read more >eslint-plugin-jsdoc - npm Package Health Analysis - Snyk
Learn more about eslint-plugin-jsdoc: package health score, popularity, security, ... (any exceptions to this format are explained within that rule's docs).
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
TSC Summary: This issue is accepted, but I wanted to see if this merited being included on the core roadmap project.
TSC Question: Should this issue be added to the core roadmap project?
In addition, I’m wondering if we want to try to detect if the plugin existed (but threw an exception on require) vs the plugin didn’t exist, and modify the pretty message template accordingly.