How to make tslint accept variable name with "_" at the beginning

Viewed 1931

I have a require of customer that say to need "_" symbol. I added this like that:

public _someVariable: string;

but tslint say variable name must be in lowerCamelCase, PascalCase or UPPER_CASE (variable-name).

I want remove alerts while keeping the tslint config and this is my tslint config:

"variable-name": {
  "options": [
    "ban-keywords",
    "check-format",
    "allow-pascal-case"
  ]
},
1 Answers
Related