Skip to content

missingPlaceholders

Reports context.report() calls missing data for message placeholders.

✅ This rule is included in the flint logical presets.

When reporting linting issues, it’s common to include dynamic data in the message using placeholders.

ruleCreator.createRule(_, {
messages: {
messagesId: {
primary: "This is a message with a {{placeholder}}",
secondary: [""],
suggestions: [""],
},
},
setup(context: RuleContext) {
context.report({
message: "messagesId",
});
},
});

This rule is not configurable.

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.