solhint

private-vars-leading-underscore

Category Badge Default Severity Badge warn

Description

Private and internal names must start with a single underscore.

Options

This rule accepts an array of options:

Index Description Default Value
0 Rule severity. Must be one of “error”, “warn”, “off”. warn
1 A JSON object with a single property “strict” specifying if the rule should apply to non state variables. Default: { strict: false }. {“strict”:false}

Example Config

{
  "rules": {
    "private-vars-leading-underscore": ["warn",{"strict":false}]
  }
}

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 3.0.0-rc.3

Resources