New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-camelcase-ohm

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-camelcase-ohm

An ESLint plugin that extends the built-in camelcase rule to allow underscores in semantic action names.

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by42.86%
Maintainers
1
Weekly downloads
 
Created
Source

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:

  • 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 for more information.

Keywords

FAQs

Package last updated on 14 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc