From 820b240dc4509a9b8b9fe5d6846b0c5b1144d900 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 14 Oct 2019 23:00:16 +0100 Subject: [PATCH] Linting config --- .eslintrc.json | 23 +++++++++++++++++++++++ .gitignore | 3 ++- package.json | 7 ++++++- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..7a7ab3e --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,23 @@ +{ + "env": { + "es6": true, + "node": true + }, + "extends": [ + "airbnb-base" + ], + "globals": { + "Atomics": "readonly", + "SharedArrayBuffer": "readonly" + }, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module" + }, + "plugins": [ + "@typescript-eslint" + ], + "rules": { + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 957b910..3246fb3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules yarn.lock -src/config.json \ No newline at end of file +src/config.json +package-lock.json \ No newline at end of file diff --git a/package.json b/package.json index 0183375..b57131f 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,11 @@ "devDependencies": { "@types/fs-extra": "^8.0.0", "@types/mongoose": "^5.5.20", - "@types/nodemailer": "^6.2.1" + "@types/nodemailer": "^6.2.1", + "@typescript-eslint/eslint-plugin": "^2.4.0", + "@typescript-eslint/parser": "^2.4.0", + "eslint": "^6.5.1", + "eslint-config-airbnb-base": "^14.0.0", + "eslint-plugin-import": "^2.18.2" } }