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

eslint-plugin-snakecasejs

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-snakecasejs

[![](https://ptkdev.it/img/github/eslintplugin_snakecasejs.png)](https://www.npmjs.com/package/eslint-plugin-snakecasejs)

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.8K
increased by7.46%
Maintainers
1
Weekly downloads
 
Created
Source

ESLint Plugin snakecasejs

What does it do

This is to enforce a style of snake_case in your project, rather than just disabling camelcase.

Features

  • [✓] Easy to use
  • [✓] MIT License
  • [✓] Compatible with last version of ESLint
  • [✓] Compatible with CamelCase (Class name or similar)
  • [✓] Whitelist array for methods or variables with camelCase syntax from other libraries/npm package.

Fast setup

  1. Add dependencies on package.json
"dependencies": {
	"eslint": "^4.19.1",
},
"devDependencies": {
	"eslint-plugin-snakecasejs": "^1.1.0",
}
  1. Create .eslintrc.json file with:
{
    "plugins": [
        "snakecasejs"
    ],
    "rules":
    {
        "snakecasejs/snakecasejs": "error",
        "snakecasejs/whitelist": []
    }
}
  1. If it works add a star :star: at this project :heart:
  2. If you want to help me: donate on paypal or become a backer on patreon.

NOTE: switch error to warn if you don't need snake_case as mandatory rules.

For advanced configuration see INSTALL.md.

Ignore words, variables, methods, class name (whitelist)

Add rules: "snakecasejs/whitelist": [] with array of variables or method with camelCase syntax.

Plugin ignore check on this words. Example: "snakecasejs/whitelist": ["externalPath","setNumber"]

License

MIT LICENSE

Copyright (c) 2018 Patryk Rzucidło (PTKDev)

Keywords

FAQs

Package last updated on 30 Sep 2018

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