Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 505 Bytes

gettext-params.md

File metadata and controls

15 lines (11 loc) · 505 Bytes

Only string or template literals allowed as gettext input (gettext-params)

Only string or template literals allowed as gettext input.

Rule Details

This rule validates that the proper arguments are provided to the gettext family functions, ie that only string literals or template literals (without expressions) are provided, or a valid concatenation of those. To include in your .eslintrc config, add the following:

{
  "rules": {
    "modulajs/gettext-params": "error"
  }
}