From abc1a87a6e8b386a6351506434ab942fda6738aa Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Mon, 11 Feb 2019 00:45:45 +0530 Subject: [PATCH] Add eslintrc. Update gitignore. --- .eslintrc.js | 29 +++++++++++++++++++++++++++++ .gitignore | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..6634bd1 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,29 @@ +module.exports = { + "parserOptions": { + "ecmaVersion": 2018 + }, + "env": { + "node": true, + "es6": true + }, + "extends": "eslint:recommended", + "rules": { + "indent": [ "error", "tab" ], + "operator-linebreak": [ "error", "before" ], + "semi": [ "error", "always" ], + "comma-dangle": [ "error", "only-multiline" ], + "quotes": [ "error", "double" ], + "no-tabs": [ "error", { "allowIndentationTabs": true } ], + "padded-blocks": 2, + "space-before-blocks": 2, + "comma-style": 2, + "no-console": 0, + "valid-typeof": 0, + "arrow-parens": 0, + "generator-star-spacing": 0, + "space-before-function-paren": 0, + "object-property-newline": 0, + "new-cap": 0, + "no-eval": 0 + } +}; diff --git a/.gitignore b/.gitignore index b1b0cdb..3c3629e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -api_key.php +node_modules