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.0 to 0.0.1

34

lib/rules/snake-case.js

@@ -1,21 +0,19 @@

module.exports = {
rules: {
snake_case: function(context) {
return {
Identifier: function(node) {
var variableName = context.getSource(node, 0, 1);
module.exports = {
snake_case: function(context) {
return {
Identifier: function(node) {
var variableName = context.getSource(node, 0, 1);
if (/[A-Z]/.test(variableName)
&& variableName.indexOf("_") > -1) {
context.report(node, '`{{identifier}}` : Variable must be in snake case', {
identifier: node.name,
});
} else {
return;
}
},
};
},
if (/[A-Z]/.test(variableName)
&& variableName.indexOf("_") > -1) {
context.report(node, '`{{identifier}}` : Variable must be in snake case', {
identifier: node.name,
});
} else {
return;
}
},
};
},
};
{
"name": "eslint-plugin-eslint-snake-case",
"version": "0.0.0",
"version": "0.0.1",
"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