Skip to content

Commit

Permalink
chore: update lint message
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Dec 13, 2024
1 parent 14b1aa5 commit cdd76d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/eslint/eslint-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {

context.report({
node,
message: `Inconsistent versions of ${packageName}: ${versions.map((v) => v.version).join(", ")}`,
message: `Inconsistent versions of ${packageName}: ${Array.from(new Set(versions.map((v) => v.version))).join(", ")}`,
suggest: versions.map((version) => ({
desc: `Follow the version ${version.version} in ${version.filePath}`,
fix: (fixer) => fixer.replaceText(node.value, `"${version.version}"`),
Expand Down

0 comments on commit cdd76d0

Please sign in to comment.