X18N1002: Duplicate capability id

Duplicate capability id. Rename the id, or set `override: true` on the later one.

Message

[X18N1002] Duplicate capability id <detail>
├▶ fix: Rename the id, or set `override: true` on the later one.
╰▶ see: https://x18n.antfu.dev/errors/x18n1002

The CLI prints the code and why the error happened, with details such as a file name or a field. The fix and a link to this page follow. With --json, the same parts are in errors of the envelope.

What to do

Two plugins register a capability (a format, finder, scanner, check, reporter or placeholder syntax) with the same id.

  1. Rename the id in your own plugin.
  2. If the second one is meant to replace the first, set override: true on it.

Exit code

The CLI exits with code 2.

Source