plugin-invalid.js 661 B

12345678910111213141516
  1. "use strict";
  2. module.exports = function(it) {
  3. const { configName, importerName } = it;
  4. return `
  5. "${configName}" is invalid syntax for a config specifier.
  6. * If your intention is to extend from a configuration exported from the plugin, add the configuration name after a slash: e.g. "${configName}/myConfig".
  7. * If this is the name of a shareable config instead of a plugin, remove the "plugin:" prefix: i.e. "${configName.slice("plugin:".length)}".
  8. "${configName}" was referenced from the config file in "${importerName}".
  9. If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
  10. `.trimLeft();
  11. };