From e8ce566c4b19fe153bbadca186f7bfbb72d97f36 Mon Sep 17 00:00:00 2001 From: Supositware Date: Wed, 2 Jan 2019 08:09:35 +0100 Subject: [PATCH] Added eslint --- .eslintrc.json | 32 ++++++++++++++++++++++++++++++++ package.json | 8 ++++++++ 2 files changed, 40 insertions(+) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..82ca605 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,32 @@ +{ + "env": { + "es6": true, + "node": true + }, + "extends": "eslint:recommended", + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module" + }, + "rules": { + "no-console": [ + "off" + ], + "indent": [ + "error", + "tab" + ], + "linebreak-style": [ + "error", + "windows" + ], + "quotes": [ + "error", + "single" + ], + "semi": [ + "error", + "always" + ] + } +} \ No newline at end of file diff --git a/package.json b/package.json index 9e78189..67914b2 100644 --- a/package.json +++ b/package.json @@ -20,5 +20,13 @@ "reload-json": "^0.3.1", "superagent": "^4.1.0", "youtube-dl": "^1.12.2" + }, + "devDependencies": { + "eslint": "^5.11.1", + "eslint-config-standard": "^12.0.0", + "eslint-plugin-import": "^2.14.0", + "eslint-plugin-node": "^8.0.0", + "eslint-plugin-promise": "^4.0.1", + "eslint-plugin-standard": "^4.0.0" } }