[feature] Add code formatting and linting configurations

This commit is contained in:
Sergey Konovalov
2025-08-06 18:25:14 +03:00
parent 2b87a0f75c
commit 2a222d9a9b
6 changed files with 749 additions and 17 deletions

View File

@ -9,13 +9,24 @@
"npm-run-all": "4.1.5"
},
"devDependencies": {
"@eslint/compat": "1.2.3",
"@eslint/js": "9.16.0",
"@jest/globals": "29.7.0",
"cross-env": "7.0.3",
"jest": "29.7.0",
"eslint": "9.16.0",
"eslint-config-prettier": "10.1.8",
"express": "4.21.2",
"prettier": "^3.6.2"
"globals": "15.12.0",
"jest": "29.7.0",
"prettier": "3.4.2"
},
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier . --write",
"format:check": "prettier . --check",
"code:check": "run-s lint format:check",
"code:fix": "run-s lint:fix format",
"perf-expired": "cd ./DocService&& cross-env NODE_ENV=development-windows NODE_CONFIG_DIR=../Common/config node ../tests/perf/checkFileExpire.js",
"perf-exif": "cd ./DocService&& cross-env NODE_ENV=development-windows NODE_CONFIG_DIR=../Common/config node ../tests/perf/fixImageExifRotation.js",
"perf-png": "cd ./DocService&& cross-env NODE_ENV=development-windows NODE_CONFIG_DIR=../Common/config node ../tests/perf/convertImageToPng.js",