Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ohmjs/eslint-plugin-camelcase-ohm
An ESLint plugin that extends the built-in camelcase rule to allow underscores in action names.
https://github.com/ohmjs/eslint-plugin-camelcase-ohm
Last synced: 6 days ago
JSON representation
An ESLint plugin that extends the built-in camelcase rule to allow underscores in action names.
- Host: GitHub
- URL: https://github.com/ohmjs/eslint-plugin-camelcase-ohm
- Owner: ohmjs
- License: mit
- Created: 2016-10-14T08:20:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-14T09:50:09.000Z (about 8 years ago)
- Last Synced: 2024-04-25T05:02:33.997Z (7 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-camelcase-ohm
An ESLint plugin that extends the built-in camelcase rule to allow underscores in semantic action names.
When writing semantic actions for an Ohm grammar, it's typical to have functions with names like `AddExp_plus`. This plugin allows a single underscore to appear in the middle of an identifier, but otherwise enforces camel-case naming.
## Usage
To use this plugin with [ESLint](http://eslint.org):
- Install this package as a dev dependency, e.g. `npm install --save-dev eslint-plugin-camelcase-ohm`.
- Ensure the plugin is loaded, e.g. by adding the following to your `.eslintrc` file:
```
"plugins": [
"camelcase-ohm"
]
```- Enable the rule in your ESLint configuration, e.g.:
```
"rules": {
"camelcase-ohm/camelcase-ohm": 2
}
```See the [ESLint documentation](http://eslint.org/docs/user-guide/configuring#configuring-plugins) for more information.