Tslint: Rule option request: snake_case for variable-name rule

Created on 8 Feb 2017  ·  3Comments  ·  Source: palantir/tslint

I would like to have an option to allow snake_case variable names, even enforce it exclusively.

All 3 comments

There are third party rule packages that do this pretty good. Maybe you want to take a look at these two:
https://www.npmjs.com/package/vrsource-tslint-rules#ext-variable-name
https://www.npmjs.com/package/tslint-consistent-codestyle#naming-convention

I rather have an option, "allow-snake-case" added to Rule: variable-name

https://palantir.github.io/tslint/rules/variable-name/

@ajafff would you review and potentially accept PR for this? My personal motivation is that snake_case is reportedly easier for non-latin language natives to read such as native Japanese readers, at least according to the ruby coding style guide.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nrip-monotype picture nrip-monotype  ·  35Comments

doronsever picture doronsever  ·  20Comments

am11 picture am11  ·  57Comments

myknbani picture myknbani  ·  24Comments

gemal picture gemal  ·  20Comments