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" } }