config-plugin-missing.js 445 B

1234567891011121314
  1. "use strict";
  2. module.exports = function (it) {
  3. const { pluginName, ruleId } = it;
  4. return `
  5. A configuration object specifies rule "${ruleId}", but could not find plugin "${pluginName}".
  6. Common causes of this problem include:
  7. 1. The "${pluginName}" plugin is not defined in your configuration file.
  8. 2. The "${pluginName}" plugin is not defined within the same configuration object in which the "${ruleId}" rule is applied.
  9. `.trimStart();
  10. };