From a65b1d051f372f40eec607daeef311cb1adf0736 Mon Sep 17 00:00:00 2001 From: kamask Date: Wed, 21 Oct 2026 21:01:44 +0300 Subject: [PATCH] chore: replace biome with prettier Remove @biomejs/biome, set indent size to 4 and add VS Code format-on-save with the Prettier extension. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_016GHq7GcQtB91bnq3832H76 --- .editorconfig | 2 +- .vscode/extensions.json | 4 +- .vscode/settings.json | 4 ++ package.json | 81 +++++++++++++++++------------------ pnpm-lock.yaml | 95 ----------------------------------------- 5 files changed, 47 insertions(+), 139 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.editorconfig b/.editorconfig index f166060..7b30331 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,7 +4,7 @@ root = true [*] charset = utf-8 indent_style = space -indent_size = 2 +indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 77b3745..527965c 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,4 +1,4 @@ { - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846 - "recommendations": ["angular.ng-template"] + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846 + "recommendations": ["angular.ng-template", "esbenp.prettier-vscode"] } diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..324a961 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true +} diff --git a/package.json b/package.json index 575ce7d..7dffbc5 100644 --- a/package.json +++ b/package.json @@ -1,42 +1,41 @@ { - "name": "pchelpcrm", - "version": "0.0.0", - "scripts": { - "ng": "ng", - "start": "ng serve", - "build": "ng build", - "watch": "ng build --watch --configuration development", - "test": "ng test", - "serve:ssr:pchelpcrm": "node dist/pchelpcrm/server/server.mjs", - "pb:serve": "pocketbase serve --dir pocketbase/pb_data --migrationsDir pocketbase/pb_migrations --dev", - "pb:superuser": "node --env-file=.env scripts/pb-superuser.mjs", - "pb:migrate": "pocketbase migrate up --dir pocketbase/pb_data --migrationsDir pocketbase/pb_migrations" - }, - "private": true, - "dependencies": { - "@angular/common": "^22.2.0", - "@angular/compiler": "^22.2.0", - "@angular/core": "^22.2.0", - "@angular/forms": "^22.2.0", - "@angular/platform-browser": "^22.2.0", - "@angular/platform-server": "^22.2.0", - "@angular/router": "^22.2.0", - "@angular/ssr": "^22.2.3", - "express": "^5.1.0", - "pocketbase": "^0.28.1", - "rxjs": "~7.8.0", - "tslib": "^2.3.0" - }, - "devDependencies": { - "@angular/build": "^22.2.3", - "@angular/cli": "^22.2.3", - "@angular/compiler-cli": "^22.2.0", - "@biomejs/biome": "2.5.15", - "@types/express": "^5.0.1", - "@types/node": "^22.12.0", - "jsdom": "^30.0.0", - "prettier": "^3.8.1", - "typescript": "~6.0.2", - "vitest": "^5.0.0" - } -} \ No newline at end of file + "name": "pchelpcrm", + "version": "0.0.0", + "scripts": { + "ng": "ng", + "start": "ng serve", + "build": "ng build", + "watch": "ng build --watch --configuration development", + "test": "ng test", + "serve:ssr:pchelpcrm": "node dist/pchelpcrm/server/server.mjs", + "pb:serve": "pocketbase serve --dir pocketbase/pb_data --migrationsDir pocketbase/pb_migrations --dev", + "pb:superuser": "node --env-file=.env scripts/pb-superuser.mjs", + "pb:migrate": "pocketbase migrate up --dir pocketbase/pb_data --migrationsDir pocketbase/pb_migrations" + }, + "private": true, + "dependencies": { + "@angular/common": "^22.2.0", + "@angular/compiler": "^22.2.0", + "@angular/core": "^22.2.0", + "@angular/forms": "^22.2.0", + "@angular/platform-browser": "^22.2.0", + "@angular/platform-server": "^22.2.0", + "@angular/router": "^22.2.0", + "@angular/ssr": "^22.2.3", + "express": "^5.1.0", + "pocketbase": "^0.28.1", + "rxjs": "~7.8.0", + "tslib": "^2.3.0" + }, + "devDependencies": { + "@angular/build": "^22.2.3", + "@angular/cli": "^22.2.3", + "@angular/compiler-cli": "^22.2.0", + "@types/express": "^5.0.1", + "@types/node": "^22.12.0", + "jsdom": "^30.0.0", + "prettier": "^3.8.1", + "typescript": "~6.0.2", + "vitest": "^5.0.0" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fff2fe9..f8f4b68 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -54,9 +54,6 @@ importers: '@angular/compiler-cli': specifier: ^22.2.0 version: 22.2.3(@angular/compiler@22.2.3)(typescript@6.0.3) - '@biomejs/biome': - specifier: 2.5.15 - version: 2.5.15 '@types/express': specifier: ^5.0.1 version: 5.0.6 @@ -311,63 +308,6 @@ packages: resolution: {integrity: sha512-c+xgSWboV2pdwXP67BUWDVRHi2BO5Q3KwxyFVs7taVTY+fsK47/L51ZXQoV9rozHJDNHvJ4v4WEsI/IlxV2l2A==} engines: {node: ^22.18.0 || >=24.11.0} - '@biomejs/biome@2.5.15': - resolution: {integrity: sha512-WZTW4slm/pdkh92K6t/3aEN++44JD1PQ7squ7RCMLI1flHGl43DVOIGXvCjHiZgBMO1V4uYxoFNtqrIA4qGuIQ==} - engines: {node: '>=14.21.3'} - hasBin: true - - '@biomejs/cli-darwin-arm64@2.5.15': - resolution: {integrity: sha512-BZVzFhJ/mUvTLMYbc9x6el0o2Uv5zP7bACYyhFb6fSc1giroXm7PL0a5KqMJ9F+/BnkYRjagD/ROSDVOZ6eapg==} - engines: {node: '>=14.21.3'} - cpu: [arm64] - os: [darwin] - - '@biomejs/cli-darwin-x64@2.5.15': - resolution: {integrity: sha512-V5Kw63V+fVGNFhFrizDxMbGXAzZCh8kYzJpy3GI6gTapWDg7bZK9oYC9CbVgQSEdTnupz0U5Efz8Ev+5vdBBXw==} - engines: {node: '>=14.21.3'} - cpu: [x64] - os: [darwin] - - '@biomejs/cli-linux-arm64-musl@2.5.15': - resolution: {integrity: sha512-tGzZUTcJCV7tj5Adh/Gn6nR4MycqA3iohq2LEcrarAgRBkU0h0OKd2UzCRkOsOYOuUGaUJb4YmqRqyy2feGGSw==} - engines: {node: '>=14.21.3'} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@biomejs/cli-linux-arm64@2.5.15': - resolution: {integrity: sha512-XaG7P7eeSLYETD3K9grfB0mQmpLQZjygdbsxekWBJAg4am79fGAtRpfRyNnTvXB2fZFNnJZG3nXm7HBat0+VUw==} - engines: {node: '>=14.21.3'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@biomejs/cli-linux-x64-musl@2.5.15': - resolution: {integrity: sha512-IlxUcyxilVGPsE008x13pWdkTbU3nQpP2i9b5UrbOYj6goBkKsRX1XB7yJLcV+O1H9LBchIIm4adOaVLZBX0ZQ==} - engines: {node: '>=14.21.3'} - cpu: [x64] - os: [linux] - libc: [musl] - - '@biomejs/cli-linux-x64@2.5.15': - resolution: {integrity: sha512-xE4iEW/3LqlYj9GFgGrFsFSH51dEEpUbYWBfeOv0q87WkUDxK2o/HhreSb7qMJqck70RVM6Lg96hgedcAYcOkA==} - engines: {node: '>=14.21.3'} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@biomejs/cli-win32-arm64@2.5.15': - resolution: {integrity: sha512-2kPKzhNlm8C+Ru3GcO0Me2ODkCBLrVOUNuyi84RJyWDVKAA4+Kjj3jMjL938lF6BRfvltC4vB2nPY9SvN51Ovg==} - engines: {node: '>=14.21.3'} - cpu: [arm64] - os: [win32] - - '@biomejs/cli-win32-x64@2.5.15': - resolution: {integrity: sha512-yAzh4UqEImV6Hcy0zjUqNfJAsUhoD64FBQCdTG8Md/Z2wQeVP/ZmJ3XRYAs1g8J9fjTFyl2fCtc5FB5til47+g==} - engines: {node: '>=14.21.3'} - cpu: [x64] - os: [win32] - '@bramus/specificity@2.4.3': resolution: {integrity: sha512-0GEz8qJWokkUVYQYRukmkSHIFNoBH8QTreeHrAFbvz1XFYc3Y+puhMs8PQ5x8GNugiC2l5jvDBXKLbBIByeSBw==} hasBin: true @@ -2825,41 +2765,6 @@ snapshots: '@babel/helper-string-parser': 8.0.6 '@babel/helper-validator-identifier': 8.0.6 - '@biomejs/biome@2.5.15': - optionalDependencies: - '@biomejs/cli-darwin-arm64': 2.5.15 - '@biomejs/cli-darwin-x64': 2.5.15 - '@biomejs/cli-linux-arm64': 2.5.15 - '@biomejs/cli-linux-arm64-musl': 2.5.15 - '@biomejs/cli-linux-x64': 2.5.15 - '@biomejs/cli-linux-x64-musl': 2.5.15 - '@biomejs/cli-win32-arm64': 2.5.15 - '@biomejs/cli-win32-x64': 2.5.15 - - '@biomejs/cli-darwin-arm64@2.5.15': - optional: true - - '@biomejs/cli-darwin-x64@2.5.15': - optional: true - - '@biomejs/cli-linux-arm64-musl@2.5.15': - optional: true - - '@biomejs/cli-linux-arm64@2.5.15': - optional: true - - '@biomejs/cli-linux-x64-musl@2.5.15': - optional: true - - '@biomejs/cli-linux-x64@2.5.15': - optional: true - - '@biomejs/cli-win32-arm64@2.5.15': - optional: true - - '@biomejs/cli-win32-x64@2.5.15': - optional: true - '@bramus/specificity@2.4.3': dependencies: css-tree: 3.2.1