aboutsummaryrefslogtreecommitdiff
path: root/packages/server
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-25 20:54:38 +0200
committerHampusM <hampus@hampusmat.com>2021-07-25 20:54:38 +0200
commite8392e65591b99f52c89cbec4554c87b19bde335 (patch)
tree18d5d7cddcd7f81e821dd2c5f6b3e0182b0153a9 /packages/server
parenta32365a7fea97fbf2a7b906ea77415ab744e7b43 (diff)
Organized Eslint stuff
Diffstat (limited to 'packages/server')
-rw-r--r--packages/server/.eslintrc.json17
-rw-r--r--packages/server/package.json6
2 files changed, 23 insertions, 0 deletions
diff --git a/packages/server/.eslintrc.json b/packages/server/.eslintrc.json
new file mode 100644
index 0000000..6d17384
--- /dev/null
+++ b/packages/server/.eslintrc.json
@@ -0,0 +1,17 @@
+{
+ "env": {
+ "commonjs": true,
+ "es2021": true,
+ "node": true
+ },
+ "extends": [
+ "standard",
+ "plugin:@typescript-eslint/recommended",
+ "base"
+ ],
+ "parserOptions": {
+ "ecmaVersion": 12,
+ "parser": "@typescript-eslint/parser"
+ },
+ "plugins": [ "@typescript-eslint" ]
+} \ No newline at end of file
diff --git a/packages/server/package.json b/packages/server/package.json
index f5ff6e1..06ce863 100644
--- a/packages/server/package.json
+++ b/packages/server/package.json
@@ -24,6 +24,12 @@
"@types/whatwg-url": "^8.2.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
+ "eslint": "^7.31.0",
+ "eslint-config-base": " ^1.0.0",
+ "eslint-config-standard": "^16.0.3",
+ "eslint-plugin-import": "^2.23.4",
+ "eslint-plugin-node": "^11.1.0",
+ "eslint-plugin-promise": "^5.1.0",
"nodemon": "^2.0.12",
"shared_types": "^1.0.0",
"ts-node": "^10.1.0",