diff --git a/.oxfmtrc.json b/.oxfmtrc.json new file mode 100644 index 000000000..0d0378cc4 --- /dev/null +++ b/.oxfmtrc.json @@ -0,0 +1,11 @@ +{ + "singleQuote": true, + "semi": false, + "tabWidth": 2, + "trailingComma": "all", + "bracketSpacing": true, + "bracketSameLine": true, + "arrowParens": "always", + "jsxSingleQuote": true, + "printWidth": 100 +} diff --git a/.oxfmtrc.json.license b/.oxfmtrc.json.license new file mode 100644 index 000000000..330322053 --- /dev/null +++ b/.oxfmtrc.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2026 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 diff --git a/backend/.oxfmtrc.json b/backend/.oxfmtrc.json new file mode 100644 index 000000000..a20502b7f --- /dev/null +++ b/backend/.oxfmtrc.json @@ -0,0 +1,4 @@ +{ + "singleQuote": true, + "trailingComma": "all" +} diff --git a/backend/.oxfmtrc.json.license b/backend/.oxfmtrc.json.license new file mode 100644 index 000000000..326b9b801 --- /dev/null +++ b/backend/.oxfmtrc.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only diff --git a/backend/.prettierrc.json b/backend/.prettierrc.json deleted file mode 100644 index 9d02d36b4..000000000 --- a/backend/.prettierrc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "plugins": ["@trivago/prettier-plugin-sort-imports"], - "singleQuote": true, - "trailingComma": "all", - "importOrder": ["^[./]"], - "importOrderSeparation": true, - "importOrderSortSpecifiers": true, - "importOrderCaseInsensitive": true, - "importOrderParserPlugins": ["typescript","classProperties","decorators-legacy"] -} diff --git a/backend/.prettierrc.json.license b/backend/.prettierrc.json.license deleted file mode 100644 index 078e5a9ac..000000000 --- a/backend/.prettierrc.json.license +++ /dev/null @@ -1,3 +0,0 @@ -SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) - -SPDX-License-Identifier: CC0-1.0 diff --git a/backend/package.json b/backend/package.json index 2f3ec1613..7dee1cb94 100644 --- a/backend/package.json +++ b/backend/package.json @@ -7,8 +7,8 @@ "license": "AGPL-3.0", "scripts": { "build": "./build.sh", - "format": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"", - "format:fix": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", + "format": "../node_modules/.bin/oxfmt --check src test", + "format:fix": "../node_modules/.bin/oxfmt src test", "start": "node dist/src/main", "start:dev": "nest start --watch", "lint": "../node_modules/.bin/oxlint src test", @@ -73,7 +73,6 @@ "@nestjs/cli": "10.4.9", "@nestjs/schematics": "10.2.3", "@nestjs/testing": "10.4.20", - "@trivago/prettier-plugin-sort-imports": "6.0.0", "@tsconfig/node24": "24.0.3", "@types/better-sqlite3": "7.6.13", "@types/cli-color": "2.0.6", @@ -94,7 +93,6 @@ "jest": "29.7.0", "knex-mock-client": "3.0.2", "mocked-env": "1.3.5", - "prettier": "3.7.4", "source-map-support": "0.5.21", "supertest": "6.3.4", "ts-jest": "29.4.6", diff --git a/database/.prettierrc.json b/commons/.oxfmtrc.json similarity index 88% rename from database/.prettierrc.json rename to commons/.oxfmtrc.json index c4b3736a8..9778a4a9c 100644 --- a/database/.prettierrc.json +++ b/commons/.oxfmtrc.json @@ -1,5 +1,4 @@ { - "parser": "typescript", "singleQuote": true, "jsxSingleQuote": true, "semi": false, diff --git a/commons/.oxfmtrc.json.license b/commons/.oxfmtrc.json.license new file mode 100644 index 000000000..326b9b801 --- /dev/null +++ b/commons/.oxfmtrc.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only diff --git a/commons/.prettierignore b/commons/.prettierignore deleted file mode 100644 index c2658d7d1..000000000 --- a/commons/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -node_modules/ diff --git a/commons/.prettierrc.json.license b/commons/.prettierrc.json.license deleted file mode 100644 index c223474fb..000000000 --- a/commons/.prettierrc.json.license +++ /dev/null @@ -1,3 +0,0 @@ -SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) - -SPDX-License-Identifier: CC0-1.0 diff --git a/commons/package.json b/commons/package.json index 7ad4883db..fa0a9ec93 100644 --- a/commons/package.json +++ b/commons/package.json @@ -10,6 +10,8 @@ "test": "jest", "test:ci": "jest --ci", "prepublish": "rm -rf dist && yarn lint && yarn build && yarn test", + "format": "../node_modules/.bin/oxfmt --check src", + "format:fix": "../node_modules/.bin/oxfmt src", "lint": "../node_modules/.bin/oxlint src", "lint:fix": "../node_modules/.bin/oxlint --fix src" }, @@ -57,7 +59,6 @@ "@types/js-yaml": "4.0.9", "@types/ws": "8.18.1", "jest": "29.7.0", - "prettier": "3.7.4", "ts-jest": "29.4.6", "typescript": "5.9.3" }, diff --git a/commons/.prettierrc.json b/database/.oxfmtrc.json similarity index 88% rename from commons/.prettierrc.json rename to database/.oxfmtrc.json index c4b3736a8..9778a4a9c 100644 --- a/commons/.prettierrc.json +++ b/database/.oxfmtrc.json @@ -1,5 +1,4 @@ { - "parser": "typescript", "singleQuote": true, "jsxSingleQuote": true, "semi": false, diff --git a/database/.oxfmtrc.json.license b/database/.oxfmtrc.json.license new file mode 100644 index 000000000..326b9b801 --- /dev/null +++ b/database/.oxfmtrc.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only diff --git a/database/.prettierignore b/database/.prettierignore deleted file mode 100644 index c2658d7d1..000000000 --- a/database/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -node_modules/ diff --git a/database/.prettierrc.json.license b/database/.prettierrc.json.license deleted file mode 100644 index c223474fb..000000000 --- a/database/.prettierrc.json.license +++ /dev/null @@ -1,3 +0,0 @@ -SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) - -SPDX-License-Identifier: CC0-1.0 diff --git a/database/package.json b/database/package.json index fcf7f4162..91f6d7afe 100644 --- a/database/package.json +++ b/database/package.json @@ -7,6 +7,8 @@ "license": "AGPL-3.0", "scripts": { "build": "./build.sh", + "format": "../node_modules/.bin/oxfmt --check src", + "format:fix": "../node_modules/.bin/oxfmt src", "lint": "../node_modules/.bin/oxlint src", "lint:fix": "../node_modules/.bin/oxlint --fix src" }, @@ -35,7 +37,6 @@ }, "devDependencies": { "@types/node": "24.10.7", - "prettier": "3.7.4", "typescript": "5.9.3" }, "packageManager": "yarn@4.12.0" diff --git a/html-to-react/.prettierrc.json b/frontend/.oxfmtrc.json similarity index 88% rename from html-to-react/.prettierrc.json rename to frontend/.oxfmtrc.json index 3421bdfba..aefeff0ef 100644 --- a/html-to-react/.prettierrc.json +++ b/frontend/.oxfmtrc.json @@ -1,5 +1,4 @@ { - "parser": "typescript", "singleQuote": true, "jsxSingleQuote": true, "semi": false, diff --git a/frontend/.oxfmtrc.json.license b/frontend/.oxfmtrc.json.license new file mode 100644 index 000000000..326b9b801 --- /dev/null +++ b/frontend/.oxfmtrc.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only diff --git a/frontend/.prettierignore b/frontend/.prettierignore deleted file mode 100644 index c2658d7d1..000000000 --- a/frontend/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -node_modules/ diff --git a/frontend/.prettierrc.json.license b/frontend/.prettierrc.json.license deleted file mode 100644 index 078e5a9ac..000000000 --- a/frontend/.prettierrc.json.license +++ /dev/null @@ -1,3 +0,0 @@ -SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) - -SPDX-License-Identifier: CC0-1.0 diff --git a/frontend/package.json b/frontend/package.json index 43d4533ec..5f619a73b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -8,8 +8,8 @@ "build:mock": "dotenv -v NEXT_PUBLIC_USE_MOCK_API=true -- ./build.sh", "build:test": "dotenv -v NODE_ENV=test -v NEXT_PUBLIC_TEST_MODE=true -c test -- ./build.sh", "analyze": "cross-env ANALYZE=true yarn build --profile", - "format": "prettier -c \"src/**/*.{ts,tsx,js}\" \"cypress/**/*.{ts,tsx}\"", - "format:fix": "prettier -w \"src/**/*.{ts,tsx,js}\" \"cypress/**/*.{ts,tsx}\"", + "format": "../node_modules/.bin/oxfmt --check src cypress", + "format:fix": "../node_modules/.bin/oxfmt src cypress", "lint": "../node_modules/.bin/oxlint src", "lint:fix": "../node_modules/.bin/oxlint --fix src", "start": "cross-env PORT=${HD_FRONTEND_PORT:-3001} node dist/frontend/server.js", @@ -147,7 +147,6 @@ "dotenv-cli": "11.0.0", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", - "prettier": "3.7.4", "react-test-renderer": "18.3.1", "ts-loader": "9.5.4", "ts-mockery": "1.2.0", diff --git a/frontend/.prettierrc.json b/html-to-react/.oxfmtrc.json similarity index 75% rename from frontend/.prettierrc.json rename to html-to-react/.oxfmtrc.json index 3421bdfba..9778a4a9c 100644 --- a/frontend/.prettierrc.json +++ b/html-to-react/.oxfmtrc.json @@ -1,10 +1,9 @@ { - "parser": "typescript", "singleQuote": true, "jsxSingleQuote": true, "semi": false, "tabWidth": 2, - "trailingComma": "none", + "trailingComma": "all", "bracketSpacing": true, "bracketSameLine": true, "arrowParens": "always" diff --git a/html-to-react/.oxfmtrc.json.license b/html-to-react/.oxfmtrc.json.license new file mode 100644 index 000000000..326b9b801 --- /dev/null +++ b/html-to-react/.oxfmtrc.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only diff --git a/html-to-react/.prettierignore b/html-to-react/.prettierignore deleted file mode 100644 index c2658d7d1..000000000 --- a/html-to-react/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -node_modules/ diff --git a/html-to-react/.prettierrc.json.license b/html-to-react/.prettierrc.json.license deleted file mode 100644 index c223474fb..000000000 --- a/html-to-react/.prettierrc.json.license +++ /dev/null @@ -1,3 +0,0 @@ -SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) - -SPDX-License-Identifier: CC0-1.0 diff --git a/html-to-react/package.json b/html-to-react/package.json index a71418829..38974d907 100644 --- a/html-to-react/package.json +++ b/html-to-react/package.json @@ -21,6 +21,8 @@ "test": "jest", "build": "./build.sh", "prepublish": "yarn lint && yarn build && yarn test", + "format": "../node_modules/.bin/oxfmt --check src", + "format:fix": "../node_modules/.bin/oxfmt src", "lint": "../node_modules/.bin/oxlint src", "lint:fix": "../node_modules/.bin/oxlint --fix src" }, @@ -53,7 +55,6 @@ "@types/react": "18.3.27", "@types/react-dom": "18.3.7", "jest": "29.7.0", - "prettier": "3.7.4", "react": "18.3.1", "react-dom": "18.3.1", "ts-jest": "29.4.6", diff --git a/markdown-it-plugins/.oxfmtrc.json b/markdown-it-plugins/.oxfmtrc.json new file mode 100644 index 000000000..9778a4a9c --- /dev/null +++ b/markdown-it-plugins/.oxfmtrc.json @@ -0,0 +1,10 @@ +{ + "singleQuote": true, + "jsxSingleQuote": true, + "semi": false, + "tabWidth": 2, + "trailingComma": "all", + "bracketSpacing": true, + "bracketSameLine": true, + "arrowParens": "always" +} diff --git a/markdown-it-plugins/.oxfmtrc.json.license b/markdown-it-plugins/.oxfmtrc.json.license new file mode 100644 index 000000000..326b9b801 --- /dev/null +++ b/markdown-it-plugins/.oxfmtrc.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only diff --git a/markdown-it-plugins/.prettierrc.json b/markdown-it-plugins/.prettierrc.json deleted file mode 100644 index 3421bdfba..000000000 --- a/markdown-it-plugins/.prettierrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parser": "typescript", - "singleQuote": true, - "jsxSingleQuote": true, - "semi": false, - "tabWidth": 2, - "trailingComma": "none", - "bracketSpacing": true, - "bracketSameLine": true, - "arrowParens": "always" -} diff --git a/markdown-it-plugins/.prettierrc.json.license b/markdown-it-plugins/.prettierrc.json.license deleted file mode 100644 index c223474fb..000000000 --- a/markdown-it-plugins/.prettierrc.json.license +++ /dev/null @@ -1,3 +0,0 @@ -SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) - -SPDX-License-Identifier: CC0-1.0 diff --git a/markdown-it-plugins/package.json b/markdown-it-plugins/package.json index 062ce147f..f44ec00e2 100644 --- a/markdown-it-plugins/package.json +++ b/markdown-it-plugins/package.json @@ -89,6 +89,8 @@ "test": "jest", "test:ci": "jest --ci", "prepublish": "rm -rf dist && yarn lint && yarn build && yarn test", + "format": "../node_modules/.bin/oxfmt --check src", + "format:fix": "../node_modules/.bin/oxfmt src", "lint": "../node_modules/.bin/oxlint src", "lint:fix": "../node_modules/.bin/oxlint --fix src" }, @@ -112,7 +114,6 @@ "@types/markdown-it": "13.0.8", "jest": "29.7.0", "markdown-it": "13.0.2", - "prettier": "3.7.4", "ts-jest": "29.4.6", "typescript": "5.9.3" }, diff --git a/package.json b/package.json index 72ff9dd5d..6fdaddc6f 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "lint": "dotenv -c development -- turbo run lint", "lint:fix": "dotenv -c development -- turbo run lint:fix", "format": "dotenv -c development -- turbo run format", + "format:fix": "dotenv -c development -- turbo run format:fix", "start:dev": "dotenv -c development -- turbo run start:dev", "start": "dotenv -c production -- turbo run start", "test:ci": "dotenv -c test -- turbo run test:ci --concurrency 1", @@ -46,6 +47,7 @@ }, "devDependencies": { "dotenv-cli": "11.0.0", + "oxfmt": "0.23.0", "oxlint": "1.38.0", "turbo": "2.6.3" } diff --git a/turbo.json b/turbo.json index 2c53de667..0f93f76da 100644 --- a/turbo.json +++ b/turbo.json @@ -82,6 +82,9 @@ "cache": false }, "format": {}, + "format:fix": { + "cache": false + }, "test": { "dependsOn": [ "^build" diff --git a/yarn.lock b/yarn.lock index f1810baaf..be6c4ec15 100644 --- a/yarn.lock +++ b/yarn.lock @@ -311,17 +311,6 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/code-frame@npm:7.27.1" - dependencies: - "@babel/helper-validator-identifier": "npm:^7.27.1" - js-tokens: "npm:^4.0.0" - picocolors: "npm:^1.1.1" - checksum: 10c0/5dd9a18baa5fce4741ba729acc3a3272c49c25cb8736c4b18e113099520e7ef7b545a4096a26d600e4416157e63e87d66db46aa3fbf0a5f2286da2705c12da00 - languageName: node - linkType: hard - "@babel/compat-data@npm:^7.22.6, @babel/compat-data@npm:^7.23.5": version: 7.23.5 resolution: "@babel/compat-data@npm:7.23.5" @@ -364,19 +353,6 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.28.0, @babel/generator@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/generator@npm:7.28.5" - dependencies: - "@babel/parser": "npm:^7.28.5" - "@babel/types": "npm:^7.28.5" - "@jridgewell/gen-mapping": "npm:^0.3.12" - "@jridgewell/trace-mapping": "npm:^0.3.28" - jsesc: "npm:^3.0.2" - checksum: 10c0/9f219fe1d5431b6919f1a5c60db8d5d34fe546c0d8f5a8511b32f847569234ffc8032beb9e7404649a143f54e15224ecb53a3d11b6bb85c3203e573d91fca752 - languageName: node - linkType: hard - "@babel/helper-annotate-as-pure@npm:^7.22.5": version: 7.22.5 resolution: "@babel/helper-annotate-as-pure@npm:7.22.5" @@ -472,13 +448,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-globals@npm:^7.28.0": - version: 7.28.0 - resolution: "@babel/helper-globals@npm:7.28.0" - checksum: 10c0/5a0cd0c0e8c764b5f27f2095e4243e8af6fa145daea2b41b53c0c1414fe6ff139e3640f4e2207ae2b3d2153a1abd346f901c26c290ee7cb3881dd922d4ee9232 - languageName: node - linkType: hard - "@babel/helper-hoist-variables@npm:^7.22.5": version: 7.22.5 resolution: "@babel/helper-hoist-variables@npm:7.22.5" @@ -597,13 +566,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-string-parser@npm:^7.27.1": - version: 7.27.1 - resolution: "@babel/helper-string-parser@npm:7.27.1" - checksum: 10c0/8bda3448e07b5583727c103560bcf9c4c24b3c1051a4c516d4050ef69df37bb9a4734a585fe12725b8c2763de0a265aa1e909b485a4e3270b7cfd3e4dbe4b602 - languageName: node - linkType: hard - "@babel/helper-validator-identifier@npm:^7.22.20": version: 7.22.20 resolution: "@babel/helper-validator-identifier@npm:7.22.20" @@ -611,13 +573,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-identifier@npm:^7.27.1, @babel/helper-validator-identifier@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/helper-validator-identifier@npm:7.28.5" - checksum: 10c0/42aaebed91f739a41f3d80b72752d1f95fd7c72394e8e4bd7cdd88817e0774d80a432451bcba17c2c642c257c483bf1d409dd4548883429ea9493a3bc4ab0847 - languageName: node - linkType: hard - "@babel/helper-validator-option@npm:^7.22.15, @babel/helper-validator-option@npm:^7.23.5": version: 7.23.5 resolution: "@babel/helper-validator-option@npm:7.23.5" @@ -667,17 +622,6 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.0, @babel/parser@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/parser@npm:7.28.5" - dependencies: - "@babel/types": "npm:^7.28.5" - bin: - parser: ./bin/babel-parser.js - checksum: 10c0/5bbe48bf2c79594ac02b490a41ffde7ef5aa22a9a88ad6bcc78432a6ba8a9d638d531d868bd1f104633f1f6bba9905746e15185b8276a3756c42b765d131b1ef - languageName: node - linkType: hard - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:^7.23.3": version: 7.23.3 resolution: "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:7.23.3" @@ -1804,17 +1748,6 @@ __metadata: languageName: node linkType: hard -"@babel/template@npm:^7.27.2": - version: 7.27.2 - resolution: "@babel/template@npm:7.27.2" - dependencies: - "@babel/code-frame": "npm:^7.27.1" - "@babel/parser": "npm:^7.27.2" - "@babel/types": "npm:^7.27.1" - checksum: 10c0/ed9e9022651e463cc5f2cc21942f0e74544f1754d231add6348ff1b472985a3b3502041c0be62dc99ed2d12cfae0c51394bf827452b98a2f8769c03b87aadc81 - languageName: node - linkType: hard - "@babel/traverse@npm:^7.24.0": version: 7.24.0 resolution: "@babel/traverse@npm:7.24.0" @@ -1833,21 +1766,6 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.28.0": - version: 7.28.5 - resolution: "@babel/traverse@npm:7.28.5" - dependencies: - "@babel/code-frame": "npm:^7.27.1" - "@babel/generator": "npm:^7.28.5" - "@babel/helper-globals": "npm:^7.28.0" - "@babel/parser": "npm:^7.28.5" - "@babel/template": "npm:^7.27.2" - "@babel/types": "npm:^7.28.5" - debug: "npm:^4.3.1" - checksum: 10c0/f6c4a595993ae2b73f2d4cd9c062f2e232174d293edd4abe1d715bd6281da8d99e47c65857e8d0917d9384c65972f4acdebc6749a7c40a8fcc38b3c7fb3e706f - languageName: node - linkType: hard - "@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.22.15, @babel/types@npm:^7.22.19, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.23.4, @babel/types@npm:^7.23.6, @babel/types@npm:^7.24.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3": version: 7.24.0 resolution: "@babel/types@npm:7.24.0" @@ -1859,16 +1777,6 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.27.1, @babel/types@npm:^7.28.0, @babel/types@npm:^7.28.5": - version: 7.28.5 - resolution: "@babel/types@npm:7.28.5" - dependencies: - "@babel/helper-string-parser": "npm:^7.27.1" - "@babel/helper-validator-identifier": "npm:^7.28.5" - checksum: 10c0/a5a483d2100befbf125793640dec26b90b95fd233a94c19573325898a5ce1e52cdfa96e495c7dcc31b5eca5b66ce3e6d4a0f5a4a62daec271455959f208ab08a - languageName: node - linkType: hard - "@bcoe/v8-coverage@npm:^0.2.3": version: 0.2.3 resolution: "@bcoe/v8-coverage@npm:0.2.3" @@ -2774,7 +2682,6 @@ __metadata: "@nestjs/testing": "npm:10.4.20" "@nestjs/websockets": "npm:10.4.20" "@node-rs/argon2": "npm:2.0.2" - "@trivago/prettier-plugin-sort-imports": "npm:6.0.0" "@tsconfig/node24": "npm:24.0.3" "@types/better-sqlite3": "npm:7.6.13" "@types/cli-color": "npm:2.0.6" @@ -2820,7 +2727,6 @@ __metadata: node-fetch: "npm:2.7.0" openid-client: "npm:5.7.1" pg: "npm:8.16.3" - prettier: "npm:3.7.4" raw-body: "npm:3.0.2" reflect-metadata: "npm:0.2.2" rxjs: "npm:7.8.2" @@ -2851,7 +2757,6 @@ __metadata: jest: "npm:29.7.0" joi: "npm:17.13.3" js-yaml: "npm:4.1.1" - prettier: "npm:3.7.4" reveal.js: "npm:5.2.1" ts-jest: "npm:29.4.6" typescript: "npm:5.9.3" @@ -2866,7 +2771,6 @@ __metadata: resolution: "@hedgedoc/database@workspace:database" dependencies: "@types/node": "npm:24.10.7" - prettier: "npm:3.7.4" typescript: "npm:5.9.3" languageName: unknown linkType: soft @@ -2979,7 +2883,6 @@ __metadata: mermaid: "npm:11.12.2" next: "npm:14.2.35" picocolors: "npm:1.1.1" - prettier: "npm:3.7.4" react: "npm:18.3.1" react-bootstrap: "npm:2.10.10" react-bootstrap-icons: "npm:1.11.6" @@ -3025,7 +2928,6 @@ __metadata: domhandler: "npm:5.0.3" htmlparser2: "npm:9.1.0" jest: "npm:29.7.0" - prettier: "npm:3.7.4" react: "npm:18.3.1" react-dom: "npm:18.3.1" ts-jest: "npm:29.4.6" @@ -3045,7 +2947,6 @@ __metadata: html-entities: "npm:2.6.0" jest: "npm:29.7.0" markdown-it: "npm:13.0.2" - prettier: "npm:3.7.4" ts-jest: "npm:29.4.6" typescript: "npm:5.9.3" peerDependencies: @@ -3584,16 +3485,6 @@ __metadata: languageName: node linkType: hard -"@jridgewell/gen-mapping@npm:^0.3.12": - version: 0.3.13 - resolution: "@jridgewell/gen-mapping@npm:0.3.13" - dependencies: - "@jridgewell/sourcemap-codec": "npm:^1.5.0" - "@jridgewell/trace-mapping": "npm:^0.3.24" - checksum: 10c0/9a7d65fb13bd9aec1fbab74cda08496839b7e2ceb31f5ab922b323e94d7c481ce0fc4fd7e12e2610915ed8af51178bdc61e168e92a8c8b8303b030b03489b13b - languageName: node - linkType: hard - "@jridgewell/resolve-uri@npm:^3.0.3, @jridgewell/resolve-uri@npm:^3.1.0": version: 3.1.2 resolution: "@jridgewell/resolve-uri@npm:3.1.2" @@ -3625,13 +3516,6 @@ __metadata: languageName: node linkType: hard -"@jridgewell/sourcemap-codec@npm:^1.5.0": - version: 1.5.5 - resolution: "@jridgewell/sourcemap-codec@npm:1.5.5" - checksum: 10c0/f9e538f302b63c0ebc06eecb1dd9918dd4289ed36147a0ddce35d6ea4d7ebbda243cda7b2213b6a5e1d8087a298d5cf630fb2bd39329cdecb82017023f6081a0 - languageName: node - linkType: hard - "@jridgewell/trace-mapping@npm:0.3.9": version: 0.3.9 resolution: "@jridgewell/trace-mapping@npm:0.3.9" @@ -3652,16 +3536,6 @@ __metadata: languageName: node linkType: hard -"@jridgewell/trace-mapping@npm:^0.3.28": - version: 0.3.31 - resolution: "@jridgewell/trace-mapping@npm:0.3.31" - dependencies: - "@jridgewell/resolve-uri": "npm:^3.1.0" - "@jridgewell/sourcemap-codec": "npm:^1.4.14" - checksum: 10c0/4b30ec8cd56c5fd9a661f088230af01e0c1a3888d11ffb6b47639700f71225be21d1f7e168048d6d4f9449207b978a235c07c8f15c07705685d16dc06280e9d9 - languageName: node - linkType: hard - "@keyv/serialize@npm:^1.1.1": version: 1.1.1 resolution: "@keyv/serialize@npm:1.1.1" @@ -4576,6 +4450,62 @@ __metadata: languageName: node linkType: hard +"@oxfmt/darwin-arm64@npm:0.23.0": + version: 0.23.0 + resolution: "@oxfmt/darwin-arm64@npm:0.23.0" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@oxfmt/darwin-x64@npm:0.23.0": + version: 0.23.0 + resolution: "@oxfmt/darwin-x64@npm:0.23.0" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@oxfmt/linux-arm64-gnu@npm:0.23.0": + version: 0.23.0 + resolution: "@oxfmt/linux-arm64-gnu@npm:0.23.0" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + +"@oxfmt/linux-arm64-musl@npm:0.23.0": + version: 0.23.0 + resolution: "@oxfmt/linux-arm64-musl@npm:0.23.0" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@oxfmt/linux-x64-gnu@npm:0.23.0": + version: 0.23.0 + resolution: "@oxfmt/linux-x64-gnu@npm:0.23.0" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + +"@oxfmt/linux-x64-musl@npm:0.23.0": + version: 0.23.0 + resolution: "@oxfmt/linux-x64-musl@npm:0.23.0" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + +"@oxfmt/win32-arm64@npm:0.23.0": + version: 0.23.0 + resolution: "@oxfmt/win32-arm64@npm:0.23.0" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@oxfmt/win32-x64@npm:0.23.0": + version: 0.23.0 + resolution: "@oxfmt/win32-x64@npm:0.23.0" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@oxlint/darwin-arm64@npm:1.38.0": version: 1.38.0 resolution: "@oxlint/darwin-arm64@npm:1.38.0" @@ -5309,37 +5239,6 @@ __metadata: languageName: node linkType: hard -"@trivago/prettier-plugin-sort-imports@npm:6.0.0": - version: 6.0.0 - resolution: "@trivago/prettier-plugin-sort-imports@npm:6.0.0" - dependencies: - "@babel/generator": "npm:^7.28.0" - "@babel/parser": "npm:^7.28.0" - "@babel/traverse": "npm:^7.28.0" - "@babel/types": "npm:^7.28.0" - javascript-natural-sort: "npm:^0.7.1" - lodash-es: "npm:^4.17.21" - minimatch: "npm:^9.0.0" - parse-imports-exports: "npm:^0.2.4" - peerDependencies: - "@vue/compiler-sfc": 3.x - prettier: 2.x - 3.x - prettier-plugin-ember-template-tag: ">= 2.0.0" - prettier-plugin-svelte: 3.x - svelte: 4.x || 5.x - peerDependenciesMeta: - "@vue/compiler-sfc": - optional: true - prettier-plugin-ember-template-tag: - optional: true - prettier-plugin-svelte: - optional: true - svelte: - optional: true - checksum: 10c0/f964257dd0678085087b38c4f53bfa2ea4210c579163f471bf27e85aac544a05d9c51fbde2ac6c1cb6d0994fb2f6714c88d425a826eded622795a63db60d119a - languageName: node - linkType: hard - "@trysound/sax@npm:0.2.0": version: 0.2.0 resolution: "@trysound/sax@npm:0.2.0" @@ -11043,6 +10942,7 @@ __metadata: resolution: "hedgedoc@workspace:." dependencies: dotenv-cli: "npm:11.0.0" + oxfmt: "npm:0.23.0" oxlint: "npm:1.38.0" turbo: "npm:2.6.3" languageName: unknown @@ -11821,13 +11721,6 @@ __metadata: languageName: node linkType: hard -"javascript-natural-sort@npm:^0.7.1": - version: 0.7.1 - resolution: "javascript-natural-sort@npm:0.7.1" - checksum: 10c0/340f8ffc5d30fb516e06dc540e8fa9e0b93c865cf49d791fed3eac3bdc5fc71f0066fc81d44ec1433edc87caecaf9f13eec4a1fce8c5beafc709a71eaedae6fe - languageName: node - linkType: hard - "jest-changed-files@npm:^29.7.0": version: 29.7.0 resolution: "jest-changed-files@npm:29.7.0" @@ -12429,15 +12322,6 @@ __metadata: languageName: node linkType: hard -"jsesc@npm:^3.0.2": - version: 3.1.0 - resolution: "jsesc@npm:3.1.0" - bin: - jsesc: bin/jsesc - checksum: 10c0/531779df5ec94f47e462da26b4cbf05eb88a83d9f08aac2ba04206508fc598527a153d08bd462bae82fc78b3eaa1a908e1a4a79f886e9238641c4cdefaf118b1 - languageName: node - linkType: hard - "jsesc@npm:~0.5.0": version: 0.5.0 resolution: "jsesc@npm:0.5.0" @@ -13719,15 +13603,6 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^9.0.0, minimatch@npm:^9.0.4": - version: 9.0.5 - resolution: "minimatch@npm:9.0.5" - dependencies: - brace-expansion: "npm:^2.0.1" - checksum: 10c0/de96cf5e35bdf0eab3e2c853522f98ffbe9a36c37797778d2665231ec1f20a9447a7e567cb640901f89e4daaa95ae5d70c65a9e8aa2bb0019b6facbc3c0575ed - languageName: node - linkType: hard - "minimatch@npm:^9.0.1": version: 9.0.3 resolution: "minimatch@npm:9.0.3" @@ -13737,6 +13612,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:^9.0.4": + version: 9.0.5 + resolution: "minimatch@npm:9.0.5" + dependencies: + brace-expansion: "npm:^2.0.1" + checksum: 10c0/de96cf5e35bdf0eab3e2c853522f98ffbe9a36c37797778d2665231ec1f20a9447a7e567cb640901f89e4daaa95ae5d70c65a9e8aa2bb0019b6facbc3c0575ed + languageName: node + linkType: hard + "minimist@npm:^1.2.0, minimist@npm:^1.2.3, minimist@npm:^1.2.5, minimist@npm:^1.2.6, minimist@npm:^1.2.8": version: 1.2.8 resolution: "minimist@npm:1.2.8" @@ -14412,6 +14296,42 @@ __metadata: languageName: node linkType: hard +"oxfmt@npm:0.23.0": + version: 0.23.0 + resolution: "oxfmt@npm:0.23.0" + dependencies: + "@oxfmt/darwin-arm64": "npm:0.23.0" + "@oxfmt/darwin-x64": "npm:0.23.0" + "@oxfmt/linux-arm64-gnu": "npm:0.23.0" + "@oxfmt/linux-arm64-musl": "npm:0.23.0" + "@oxfmt/linux-x64-gnu": "npm:0.23.0" + "@oxfmt/linux-x64-musl": "npm:0.23.0" + "@oxfmt/win32-arm64": "npm:0.23.0" + "@oxfmt/win32-x64": "npm:0.23.0" + tinypool: "npm:2.0.0" + dependenciesMeta: + "@oxfmt/darwin-arm64": + optional: true + "@oxfmt/darwin-x64": + optional: true + "@oxfmt/linux-arm64-gnu": + optional: true + "@oxfmt/linux-arm64-musl": + optional: true + "@oxfmt/linux-x64-gnu": + optional: true + "@oxfmt/linux-x64-musl": + optional: true + "@oxfmt/win32-arm64": + optional: true + "@oxfmt/win32-x64": + optional: true + bin: + oxfmt: bin/oxfmt + checksum: 10c0/4678e410ff6a25675081e75291b511cdd5256a3e3e7bf9db2970df9e79a3e622ba595787c706946bc3a4e343d508ff981fca256db33c54199f01b418f52200e5 + languageName: node + linkType: hard + "oxlint@npm:1.38.0": version: 1.38.0 resolution: "oxlint@npm:1.38.0" @@ -14533,15 +14453,6 @@ __metadata: languageName: node linkType: hard -"parse-imports-exports@npm:^0.2.4": - version: 0.2.4 - resolution: "parse-imports-exports@npm:0.2.4" - dependencies: - parse-statements: "npm:1.0.11" - checksum: 10c0/51b729037208abdf65c4a1f8e9ed06f4e7ccd907c17c668a64db54b37d95bb9e92081f8b16e4133e14102af3cb4e89870975b6ad661b4d654e9ec8f4fb5c77d6 - languageName: node - linkType: hard - "parse-json@npm:^5.0.0, parse-json@npm:^5.2.0": version: 5.2.0 resolution: "parse-json@npm:5.2.0" @@ -14554,13 +14465,6 @@ __metadata: languageName: node linkType: hard -"parse-statements@npm:1.0.11": - version: 1.0.11 - resolution: "parse-statements@npm:1.0.11" - checksum: 10c0/48960e085019068a5f5242e875fd9d21ec87df2e291acf5ad4e4887b40eab6929a8c8d59542acb85a6497e870c5c6a24f5ab7f980ef5f907c14cc5f7984a93f3 - languageName: node - linkType: hard - "parse5@npm:^7.0.0, parse5@npm:^7.1.1": version: 7.1.2 resolution: "parse5@npm:7.1.2" @@ -14967,15 +14871,6 @@ __metadata: languageName: node linkType: hard -"prettier@npm:3.7.4": - version: 3.7.4 - resolution: "prettier@npm:3.7.4" - bin: - prettier: bin/prettier.cjs - checksum: 10c0/9675d2cd08eacb1faf1d1a2dbfe24bfab6a912b059fc9defdb380a408893d88213e794a40a2700bd29b140eb3172e0b07c852853f6e22f16f3374659a1a13389 - languageName: node - linkType: hard - "pretty-bytes@npm:^5.6.0": version: 5.6.0 resolution: "pretty-bytes@npm:5.6.0" @@ -17003,6 +16898,13 @@ __metadata: languageName: node linkType: hard +"tinypool@npm:2.0.0": + version: 2.0.0 + resolution: "tinypool@npm:2.0.0" + checksum: 10c0/3888cc668cdbb1bc85e1b58587897501254ffc5de52cf4e0d30936869922a4eaf2f085ce10562122df3eb7536cbf3d29ecc2faba37656933649d1d2f5bc9bff7 + languageName: node + linkType: hard + "tlds@npm:1.261.0": version: 1.261.0 resolution: "tlds@npm:1.261.0"