eslint-plugin-google-camelcase
Version:
enforce camelcase names but allow opt_ prefix
23 lines (12 loc) • 838 B
Markdown
[](https://travis-ci.org/greggman/eslint-plugin-google-camelcase)
# eslint-plugin-google-camelcase
<a href="http://eslint.org/">ESLint</a> rule for enforcing camelcase variable but allowing the prefix `opt_`.
This is the [google javascript style guide](https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml)
rules.
## Why Use It
You follow the [google javascript style guide](https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml).
The google javascript style guide is almost exactly the same as the default
[eslint camelcase rule](http://eslint.org/docs/rules/camelcase.html).
The difference is google's style requires optional arugments to start with the prefix `opt_`.
## Further Reading
* http://eslint.org/