Skip to content

Commit a8c11f8

Browse files
committed
[Fix] Undefined whitelist in .eslintrc
1 parent d57921d commit a8c11f8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ try {
1818
eslintrc = [];
1919
}
2020

21+
if(typeof eslintrc.rules["snakecasejs/whitelist"] == "undefined"){
22+
eslintrc.rules["snakecasejs/whitelist"] = [];
23+
}
24+
2125
function is_class_usage(node) {
2226
return ["FunctionDeclaration", "NewExpression", "MemberExpression"].indexOf(node.parent.type) > -1;
2327
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eslint-plugin-snakecasejs",
33
"description": "Eslint plugin to enforce a style of snake_case in your project, rather than just disabling camelcase.",
4-
"version": "1.1.0-2",
4+
"version": "1.1.0-3",
55
"main": "index.js",
66
"author": "Patryk Rzucidlo [@ptkdev] <support@ptkdev.io> (https://ptkdev.it)",
77
"author_original": "David Buchan-Swanson <david.buchanswanson@gmail.com>",

0 commit comments

Comments
 (0)