add eslint

This commit is contained in:
Moriz Wahl 2023-11-30 11:03:10 +01:00
parent 0faa404e60
commit 7af2c50e0e
2 changed files with 1431 additions and 1 deletions

1426
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,8 @@
}, },
"scripts": { "scripts": {
"watch": "nodemon --watch './**/*.{ts,graphql}' --exec 'node --loader ts-node/esm' src/index.ts", "watch": "nodemon --watch './**/*.{ts,graphql}' --exec 'node --loader ts-node/esm' src/index.ts",
"dev": "tsc-watch --noClear --onSuccess \"npm run watch\"" "dev": "tsc-watch --noClear --onSuccess \"npm run watch\"",
"test:lint:eslint": "eslint --ext .ts,.tsx,.js,.jsx,.json,.yml,.yaml --max-warnings 0 --ignore-path .gitignore ."
}, },
"dependencies": { "dependencies": {
"apollo-server-express": "^3.13.0", "apollo-server-express": "^3.13.0",
@ -26,6 +27,9 @@
"devDependencies": { "devDependencies": {
"@types/express": "^4.17.21", "@types/express": "^4.17.21",
"@types/node": "^20.10.1", "@types/node": "^20.10.1",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"eslint": "^8.54.0",
"nodemon": "^3.0.1", "nodemon": "^3.0.1",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"tsc": "^2.0.4", "tsc": "^2.0.4",