UNPKG

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