plugin-missing.js 668 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 stop by https://eslint.org/chat/help to chat with the team.
  11. `.trimStart();
  12. };