eslint-plugin-eslint-snake-case
Advanced tools
Comparing version 0.0.3 to 0.0.4
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)) { |
{ | ||
"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": [ |
2278
27