product icon

Valid JS Identifier

Message Lint Rule

#What does this rule do?

Enforces that all message ids are valid JavaScript identifiers. It also excludes any reserved JS keywords. You can read more about valid JS identifiers here.

#Manual setup

Besides installing the lint rule through you could also configure it manually.



type MessageLintRuleLevel = "error" | "warning"

Example in the project.inlang/settings.json:

    // other configuration
    "messageLintRuleLevels": {
		"messageLintRule.inlang.validJsIdentifier": "error",

The default level is warning