plugin-invalid.js 658 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 see https://eslint.org/docs/latest/use/troubleshooting.
  10. `.trimStart();
  11. };