diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/no-identifier-n.js b/scripts/tools/eslint-plugin-prettier-internal-rules/no-identifier-n.js index 839a2947d..84c6cf75c 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/no-identifier-n.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/no-identifier-n.js @@ -24,6 +24,7 @@ module.exports = { [SUGGESTION]: "Rename to `node`.", }, fixable: "code", + hasSuggestions: true, }, create(context) { const variables = new Map(); @@ -63,12 +64,7 @@ module.exports = { for (const identifier of identifiers) { const { parent } = identifier; - if ( - parent && - parent.type === "Property" && - parent.shorthand && - parent.key === identifier - ) { + if (parent && parent.type === "Property" && parent.shorthand) { yield fixer.replaceText(identifier, "n: node"); } else { yield fixer.replaceText(identifier, "node");