Server: ESLint setup.

This commit is contained in:
baldo 2022-08-23 19:18:02 +02:00
commit 5237db38e0
3 changed files with 515 additions and 15 deletions

View file

@ -22,10 +22,11 @@
"test": "yarn run server:test",
"build": "yarn run server:build && grunt build && rsync -avzL --exclude='*/__mocks__/' --exclude='*.test.*' server-build/ dist/server/",
"clean": "rm -rf server-build/ dist/ && grunt clean",
"dist": "yarn run clean && yarn run build && ./bin/dist-fix-symlinks.sh && yarn run test",
"dist": "yarn run clean && yarn run build && yarn run server:lint && ./bin/dist-fix-symlinks.sh && yarn run test",
"client:serve": "grunt serve",
"server:test": "jest --config=jest.server.config.js",
"server:build": "tsc -b server && ln -sfv ../../server/db/patches ./server-build/db/ && ln -sfv ../server/templates ./server-build/ && ln -sfv ../server/mailTemplates ./server-build/",
"server:lint": "eslint server/ --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"server:run": "yarn run server:build && node server-build/main.js"
},
"dependencies": {
@ -56,6 +57,7 @@
"sqlite3": "^5.0.11"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.4",
"@types/async": "^3.2.15",
"@types/bcrypt": "^5.0.0",
"@types/command-line-args": "^5.2.0",
@ -72,8 +74,11 @@
"@types/node-cron": "^3.0.2",
"@types/nodemailer": "^6.4.5",
"@types/request": "^2.48.8",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0",
"bower": "^1.8.13",
"escape-string-regexp": "^5.0.0",
"eslint": "^8.22.0",
"grunt": "^1.4.1",
"grunt-cli": "^1.4.3",
"grunt-concurrent": "^3.0.0",
@ -98,6 +103,7 @@
"jest": "^28.1.3",
"jshint-stylish": "^2.2.1",
"load-grunt-tasks": "^5.1.0",
"prettier": "^2.7.1",
"time-grunt": "^2.0.0",
"ts-jest": "^28.0.8",
"typescript": "^4.7.4",