[feature] prettier config

This commit is contained in:
PauI Ostrovckij
2025-08-06 11:09:57 +03:00
committed by Sergey Konovalov
parent 3327be2bd6
commit 2b87a0f75c
3 changed files with 26 additions and 1 deletions

18
.prettierrc Normal file
View File

@ -0,0 +1,18 @@
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": false,
"bracketSameLine": false,
"arrowParens": "always",
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": false
}

6
npm-shrinkwrap.json generated
View File

@ -4282,6 +4282,12 @@
"find-up": "^4.0.0"
}
},
"prettier": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz",
"integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==",
"dev": true
},
"pretty-format": {
"version": "29.7.0",
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",

View File

@ -12,7 +12,8 @@
"@jest/globals": "29.7.0",
"cross-env": "7.0.3",
"jest": "29.7.0",
"express": "4.21.2"
"express": "4.21.2",
"prettier": "^3.6.2"
},
"scripts": {
"perf-expired": "cd ./DocService&& cross-env NODE_ENV=development-windows NODE_CONFIG_DIR=../Common/config node ../tests/perf/checkFileExpire.js",