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

eslint-plugin-eslint-snake-case

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-eslint-snake-case - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

7

lib/rules/snake-case.js
module.exports = function snakeCase(context) {
return {
Identifier: function(node) {
var variableName = context.getSource(node, 0, 1);
var variableNamePlusTwo = context.getSource(node, 0, 2);
nameWithMaybeColon[nameWithMaybeColon.length - 1]
if (variableNamePlusTwo[variableNamePlusTwo.length -1] === "(" || variableNamePlusTwo[variableNamePlusTwo.length -2] === "(" ) {
//Don't yell at functions
return;
}

@@ -6,0 +11,0 @@ if (/[A-Z]/.test(variableName)) {

2

package.json
{
"name": "eslint-plugin-eslint-snake-case",
"version": "0.0.3",
"version": "0.0.4",
"description": "This plugin verifys variable names are in snake_case",

@@ -5,0 +5,0 @@ "keywords": [

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