Skip to content

Commit

Permalink
[Fix] Undefined whitelist in .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkdev committed Sep 30, 2018
1 parent d57921d commit a8c11f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ try {
eslintrc = [];
}

if(typeof eslintrc.rules["snakecasejs/whitelist"] == "undefined"){
eslintrc.rules["snakecasejs/whitelist"] = [];
}

function is_class_usage(node) {
return ["FunctionDeclaration", "NewExpression", "MemberExpression"].indexOf(node.parent.type) > -1;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-snakecasejs",
"description": "Eslint plugin to enforce a style of snake_case in your project, rather than just disabling camelcase.",
"version": "1.1.0-2",
"version": "1.1.0-3",
"main": "index.js",
"author": "Patryk Rzucidlo [@ptkdev] <[email protected]> (https://ptkdev.it)",
"author_original": "David Buchan-Swanson <[email protected]>",
Expand Down

0 comments on commit a8c11f8

Please sign in to comment.