plugin-missing.js 664 B

12345678910111213141516171819
  1. "use strict";
  2. module.exports = function(it) {
  3. const { pluginName, resolvePluginsRelativeTo, importerName } = it;
  4. return `
  5. ESLint couldn't find the plugin "${pluginName}".
  6. (The package "${pluginName}" was not found when loaded as a Node module from the directory "${resolvePluginsRelativeTo}".)
  7. It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
  8. npm install ${pluginName}@latest --save-dev
  9. The plugin "${pluginName}" was referenced from the config file in "${importerName}".
  10. If you still can't figure out the problem, please see https://eslint.org/docs/latest/use/troubleshooting.
  11. `.trimStart();
  12. };