diff --git a/index.js b/index.js index c6a4099..154dd9a 100644 --- a/index.js +++ b/index.js @@ -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; } diff --git a/package.json b/package.json index 779ef84..6c92111 100644 --- a/package.json +++ b/package.json @@ -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] (https://ptkdev.it)", "author_original": "David Buchan-Swanson ",