1 | "use strict";
|
2 |
|
3 | module.exports = function(it) {
|
4 | const { pluginId, plugins } = it;
|
5 |
|
6 | let result = `ESLint couldn't determine the plugin "${pluginId}" uniquely.
|
7 | `;
|
8 |
|
9 | for (const { filePath, importerName } of plugins) {
|
10 | result += `
|
11 | - ${filePath} (loaded in "${importerName}")`;
|
12 | }
|
13 |
|
14 | result += `
|
15 |
|
16 | Please remove the "plugins" setting from either config or remove either plugin installation.
|
17 |
|
18 | If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
|
19 | `;
|
20 |
|
21 | return result;
|
22 | };
|