mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
[feature] Add code formatting and linting configurations
This commit is contained in:
15
package.json
15
package.json
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user