mirror of
https://github.com/outline/outline.git
synced 2025-12-21 10:39:41 -06:00
@@ -3,7 +3,7 @@ export default {
|
|||||||
// TypeScript files
|
// TypeScript files
|
||||||
"**/*.[tj]s?(x)": [
|
"**/*.[tj]s?(x)": [
|
||||||
(f) => `prettier --write ${f.join(" ")}`,
|
(f) => `prettier --write ${f.join(" ")}`,
|
||||||
(f) => (f.length > 20 ? `yarn lint --fix` : `oxlint ${f.join(" ")} --fix`),
|
(f) => (f.length > 20 ? `yarn lint --fix` : `oxlint ${f.join(" ")} --fix --type-aware`),
|
||||||
() => `yarn build:i18n`,
|
() => `yarn build:i18n`,
|
||||||
() => "git add shared/i18n/locales/en_US/translation.json",
|
() => "git add shared/i18n/locales/en_US/translation.json",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
"dev": "NODE_ENV=development yarn concurrently -n api,collaboration -c \"blue,magenta\" \"node --inspect=0.0.0.0 build/server/index.js --services=cron,collaboration,websockets,admin,web,worker\"",
|
"dev": "NODE_ENV=development yarn concurrently -n api,collaboration -c \"blue,magenta\" \"node --inspect=0.0.0.0 build/server/index.js --services=cron,collaboration,websockets,admin,web,worker\"",
|
||||||
"dev:backend": "NODE_ENV=development nodemon --exec \"yarn build:server && yarn dev\" -e js,ts,tsx --ignore *.test.ts --ignore data/ --ignore build/ --ignore app/ --ignore shared/editor --ignore server/migrations",
|
"dev:backend": "NODE_ENV=development nodemon --exec \"yarn build:server && yarn dev\" -e js,ts,tsx --ignore *.test.ts --ignore data/ --ignore build/ --ignore app/ --ignore shared/editor --ignore server/migrations",
|
||||||
"dev:watch": "NODE_ENV=development yarn concurrently -n backend,frontend \"yarn dev:backend\" \"yarn vite:dev\"",
|
"dev:watch": "NODE_ENV=development yarn concurrently -n backend,frontend \"yarn dev:backend\" \"yarn vite:dev\"",
|
||||||
"lint": "oxlint app server shared plugins",
|
"lint": "oxlint --type-aware app server shared plugins",
|
||||||
"lint:changed": "git diff --name-only --diff-filter=ACMRTUXB | grep -E '\\.(js|jsx|ts|tsx)$' | xargs -r oxlint",
|
"lint:changed": "git diff --name-only --diff-filter=ACMRTUXB | grep -E '\\.(js|jsx|ts|tsx)$' | xargs -r oxlint",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"format:check": "prettier --check .",
|
"format:check": "prettier --check .",
|
||||||
@@ -359,7 +359,8 @@
|
|||||||
"jest-fetch-mock": "^3.0.3",
|
"jest-fetch-mock": "^3.0.3",
|
||||||
"lint-staged": "^13.3.0",
|
"lint-staged": "^13.3.0",
|
||||||
"nodemon": "^3.1.10",
|
"nodemon": "^3.1.10",
|
||||||
"oxlint": "^1.7.0",
|
"oxlint": "1.11.2",
|
||||||
|
"oxlint-tsgolint": "^0.1.6",
|
||||||
"postinstall-postinstall": "^2.1.0",
|
"postinstall-postinstall": "^2.1.0",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"react-refresh": "^0.17.0",
|
"react-refresh": "^0.17.0",
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ module.exports = {
|
|||||||
for (const document of documents) {
|
for (const document of documents) {
|
||||||
const id = document.id;
|
const id = document.id;
|
||||||
const fixedText = document.text.replace(/\n{2,}/gi, "\n\n");
|
const fixedText = document.text.replace(/\n{2,}/gi, "\n\n");
|
||||||
if (fixedText === document.text) continue;
|
if (fixedText === document.text) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// raw query to avoid hooks
|
// raw query to avoid hooks
|
||||||
await queryInterface.sequelize.query(
|
await queryInterface.sequelize.query(
|
||||||
`
|
`
|
||||||
|
|||||||
131
yarn.lock
131
yarn.lock
@@ -3076,45 +3076,75 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@oxc-project/types/-/types-0.77.2.tgz#4e55b79461096ce849671b16f127aca84cf8f863"
|
resolved "https://registry.yarnpkg.com/@oxc-project/types/-/types-0.77.2.tgz#4e55b79461096ce849671b16f127aca84cf8f863"
|
||||||
integrity sha512-+ZFWJF8ZBTOIO5PiNohNIw7JBzJCybScfrhLh65tcHCAtqaQkVDonjRD1HmMV/RF3rtt3r88hzSyTqvXs4j7vw==
|
integrity sha512-+ZFWJF8ZBTOIO5PiNohNIw7JBzJCybScfrhLh65tcHCAtqaQkVDonjRD1HmMV/RF3rtt3r88hzSyTqvXs4j7vw==
|
||||||
|
|
||||||
"@oxlint/darwin-arm64@1.7.0":
|
"@oxlint-tsgolint/darwin-arm64@0.1.6":
|
||||||
version "1.7.0"
|
version "0.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/@oxlint/darwin-arm64/-/darwin-arm64-1.7.0.tgz#0816b2d86ac0ed0020f015d82117bcb4643e535f"
|
resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/darwin-arm64/-/darwin-arm64-0.1.6.tgz#29a068b3ebb8668d624fa303740d2b6807e5d36e"
|
||||||
integrity sha512-51vhCSQO4NSkedwEwOyqThiYqV0DAUkwNdqMQK0d29j5zmtNJJJRRBLeQuLGdstNmn3F7WMQ75Ci0/3Nq4ff8A==
|
integrity sha512-KxA6MQjHnVBNPi4K3o7HHNSKyTxwbm4elKmkgys/oxxeQ1Y5g4bB95AhpwRVzaq8MZ/Dt9EblQY5g6c5t6eoPg==
|
||||||
|
|
||||||
"@oxlint/darwin-x64@1.7.0":
|
"@oxlint-tsgolint/darwin-x64@0.1.6":
|
||||||
version "1.7.0"
|
version "0.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/@oxlint/darwin-x64/-/darwin-x64-1.7.0.tgz#3652261854b54d66651091cafe214f396d9cd020"
|
resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/darwin-x64/-/darwin-x64-0.1.6.tgz#b1ed6e279963854ae04610b014d146ca1a1eafaa"
|
||||||
integrity sha512-c0GN52yehYZ4TYuh4lBH9wYbBOI/RDOxZhJdBsttG0GwfvKYg/tiPNrNEsPzu0/rd1j6x3yT0zt6vezDMeC1sQ==
|
integrity sha512-rcl3yhOei95Mcozud1RgqR2DZ8j0JNYgQgtmj1EhpY2f/qSxsny4DDGQFtCk4An6nt4vXOAXG9Q/0gzjifbQgQ==
|
||||||
|
|
||||||
"@oxlint/linux-arm64-gnu@1.7.0":
|
"@oxlint-tsgolint/linux-arm64@0.1.6":
|
||||||
version "1.7.0"
|
version "0.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/@oxlint/linux-arm64-gnu/-/linux-arm64-gnu-1.7.0.tgz#6e6a73b7ebae35c301cca8b737ff38e37412d56f"
|
resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/linux-arm64/-/linux-arm64-0.1.6.tgz#a5c0fa91faeb5c52abc7a507cd245c9a0b7c02dc"
|
||||||
integrity sha512-pam/lbzbzVMDzc3f1hoRPtnUMEIqkn0dynlB5nUll/MVBSIvIPLS9kJLrRA48lrlqbkS9LGiF37JvpwXA58A9A==
|
integrity sha512-DeI8EtXX/5PtHlj9gOfuxsL/pMgl9z1b9XZnGZaBmrEZkIUD7A+KYZo8DUGYpdf5ZiFZPR9Vl5wtOZVXYZJ/bQ==
|
||||||
|
|
||||||
"@oxlint/linux-arm64-musl@1.7.0":
|
"@oxlint-tsgolint/linux-x64@0.1.6":
|
||||||
version "1.7.0"
|
version "0.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/@oxlint/linux-arm64-musl/-/linux-arm64-musl-1.7.0.tgz#a864e288e476b96b3c846d2dd3542b42f6ffed61"
|
resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/linux-x64/-/linux-x64-0.1.6.tgz#eb7b26cf893fa0150bba8ede4bd606a9d68800d0"
|
||||||
integrity sha512-LTyPy9FYS3SZ2XxJx+ITvlAq/ek5PtZK9Z2m3W72TA8hchGhJy5eQ+aotYjd/YVXOpGRpB12RdOpOTsZRu50bA==
|
integrity sha512-0J3kxkRwauJPqAqirmB9arOXkQrjxQL4Rc72ev15vTxLwQf6yc0bwBCgeCT9xPZUfWesolBoePP+eOaLf8ebTg==
|
||||||
|
|
||||||
"@oxlint/linux-x64-gnu@1.7.0":
|
"@oxlint-tsgolint/win32-arm64@0.1.6":
|
||||||
version "1.7.0"
|
version "0.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/@oxlint/linux-x64-gnu/-/linux-x64-gnu-1.7.0.tgz#bc1fd2435ec6880aed05ec36b917d65b92e9848d"
|
resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/win32-arm64/-/win32-arm64-0.1.6.tgz#6b951dc30530e1b3dd3a015e9dc8e667d4b835e9"
|
||||||
integrity sha512-YtZ4DiAgjaEiqUiwnvtJ/znZMAAVPKR7pnsi6lqbA3BfXJ/IwMaNpdoGlCGVdDGeN4BuGCwnFtBVqKVvVg3DDg==
|
integrity sha512-4Yw33pCVovRo9Mdf9FTwwJWeIc9NG8fkd3VCNSSrO+/owlmx7SIKW13ezadoiKOx1/ycIrT0uUYnovSRv56uDg==
|
||||||
|
|
||||||
"@oxlint/linux-x64-musl@1.7.0":
|
"@oxlint-tsgolint/win32-x64@0.1.6":
|
||||||
version "1.7.0"
|
version "0.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/@oxlint/linux-x64-musl/-/linux-x64-musl-1.7.0.tgz#c5ecfb8c3a0a22c4bba53ed2a05f6d276b3b3c00"
|
resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/win32-x64/-/win32-x64-0.1.6.tgz#aa85c7d56cc3fd790fa66f546e2231cf46dc5f29"
|
||||||
integrity sha512-5aIpemNUBvwMMk4MCx1V3M6R9eMB1/SS6/24Orax9FqaI1lDX08tySdv696sr4Lms9ocA+rotxIPW9NP9439vA==
|
integrity sha512-SSG6OYhxrR+Ar2sERqKQ0e/vEEuu/0favPmrbV8/qFAlNfVcipQAlxi/ZDd+m4ft6mTYHfiAg0OS1oGNgliIwA==
|
||||||
|
|
||||||
"@oxlint/win32-arm64@1.7.0":
|
"@oxlint/darwin-arm64@1.11.2":
|
||||||
version "1.7.0"
|
version "1.11.2"
|
||||||
resolved "https://registry.yarnpkg.com/@oxlint/win32-arm64/-/win32-arm64-1.7.0.tgz#276e715f3a8b66ff3205868c249e40ad3cfc867e"
|
resolved "https://registry.yarnpkg.com/@oxlint/darwin-arm64/-/darwin-arm64-1.11.2.tgz#307d3157f7bfd0979a643cc8628704ab3e5185e7"
|
||||||
integrity sha512-fpFpkHwbAu0NcR5bc1WapCPcM9qSYi5lCRVOp1WwDoFLKI2b9/UWB8OEg8UHWV5dnBu7HZAWH/SEslYGkZNsbQ==
|
integrity sha512-eJZ1VKaS9qj44FTus3qTu790xMnJ/GViJcoVF3zNux5m3lOiWhwJB149+P7a7LcTowNdc26i1DmwcWxUllPwZw==
|
||||||
|
|
||||||
"@oxlint/win32-x64@1.7.0":
|
"@oxlint/darwin-x64@1.11.2":
|
||||||
version "1.7.0"
|
version "1.11.2"
|
||||||
resolved "https://registry.yarnpkg.com/@oxlint/win32-x64/-/win32-x64-1.7.0.tgz#65a9773ff3659ef0b49b1142b4c88b9eeb350d90"
|
resolved "https://registry.yarnpkg.com/@oxlint/darwin-x64/-/darwin-x64-1.11.2.tgz#15f12cf52283be2e8cc1983b564cfdb1665b4dbf"
|
||||||
integrity sha512-0EPWBWOiD3wZHgeWDlTUaiFzhzIonXykxYUC+NRerPQFkO/G+bd9uLMJddHDKqfP/7g8s3E5V6KvBvvFpb7U6g==
|
integrity sha512-KH9BJ5ObkReIr00IbGaImqL2q4CCjIAk9HxgULvWpjSnqUL7OgJFZAabb9Z5ZS0+RyZrKUtd1ZU/Ackb6k4G3Q==
|
||||||
|
|
||||||
|
"@oxlint/linux-arm64-gnu@1.11.2":
|
||||||
|
version "1.11.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@oxlint/linux-arm64-gnu/-/linux-arm64-gnu-1.11.2.tgz#95eaa53272e12058428e67d3a36ec7a76126ec08"
|
||||||
|
integrity sha512-nIhyGApnEuqLazaSwvEkg5pMm2rlBPJccAGrNmJPcMukKbD5fUYyuCvkm9CFUqTm1+MIYrs5bTeRhnDSEa2mYw==
|
||||||
|
|
||||||
|
"@oxlint/linux-arm64-musl@1.11.2":
|
||||||
|
version "1.11.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@oxlint/linux-arm64-musl/-/linux-arm64-musl-1.11.2.tgz#6210a356ba5f022a52e68651ecc3945acb640f27"
|
||||||
|
integrity sha512-ifrqaBwVYt3g6GUbIwF9G9pTvkIvbs47F47oSjVogdy5hn2yEEi1zxyYGV9AFF3zVMgp2xDIO8G/gTuz1WPHkg==
|
||||||
|
|
||||||
|
"@oxlint/linux-x64-gnu@1.11.2":
|
||||||
|
version "1.11.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@oxlint/linux-x64-gnu/-/linux-x64-gnu-1.11.2.tgz#c41fdc0ccc706933ff90f4b67c9cf9fc7158ed92"
|
||||||
|
integrity sha512-yWCgoOQ0xA/AxJ7ruLMR/YMKYEwV048vrWftZGCjKPYgZeZe9bpghAoRlLi6qjw7ReNpctk9Ho+l35TYXNqhzA==
|
||||||
|
|
||||||
|
"@oxlint/linux-x64-musl@1.11.2":
|
||||||
|
version "1.11.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@oxlint/linux-x64-musl/-/linux-x64-musl-1.11.2.tgz#41f53e2ff56f7507a7dced159342f4c17cdfa93b"
|
||||||
|
integrity sha512-nYer9TaY/gC+kVwOfb9DxZh0dNdqFI8ax/MD9TwH8p3ZnWuUe1Ocfpg0V94tuPoGxHFqcXU7GRD1cTvREHfcTg==
|
||||||
|
|
||||||
|
"@oxlint/win32-arm64@1.11.2":
|
||||||
|
version "1.11.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@oxlint/win32-arm64/-/win32-arm64-1.11.2.tgz#bfa068d59a67401ed2e102d6009cae43d947d443"
|
||||||
|
integrity sha512-zbfZ7r68MyxQ2GAg/jFzIQCFrL8lcwnxfIEqY+V16/Xcd1rZVfMH3PwJMloib26pOLH6/RUlC5IjdVo8icadHA==
|
||||||
|
|
||||||
|
"@oxlint/win32-x64@1.11.2":
|
||||||
|
version "1.11.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@oxlint/win32-x64/-/win32-x64-1.11.2.tgz#f9d7a6775c0facba5be664341edba0c121b0191f"
|
||||||
|
integrity sha512-eSATaCIUwdh+t9gu9xoETjh+0PYwjVSLtnZ20XakKNjvee4KmQbWXCxXyA1vz1E0qxiUX/fYqsaOHueIwQ2LVA==
|
||||||
|
|
||||||
"@pkgjs/parseargs@^0.11.0":
|
"@pkgjs/parseargs@^0.11.0":
|
||||||
version "0.11.0"
|
version "0.11.0"
|
||||||
@@ -11551,19 +11581,32 @@ own-keys@^1.0.0:
|
|||||||
object-keys "^1.1.1"
|
object-keys "^1.1.1"
|
||||||
safe-push-apply "^1.0.0"
|
safe-push-apply "^1.0.0"
|
||||||
|
|
||||||
oxlint@^1.7.0:
|
oxlint-tsgolint@>=0.0.1, oxlint-tsgolint@^0.1.6:
|
||||||
version "1.7.0"
|
version "0.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/oxlint/-/oxlint-1.7.0.tgz#ecd408641965085ad2d46a0589698380ff667780"
|
resolved "https://registry.yarnpkg.com/oxlint-tsgolint/-/oxlint-tsgolint-0.1.6.tgz#d0c876e5662a5d1b5abffb113707b69be2964c35"
|
||||||
integrity sha512-krJN1fIRhs3xK1FyVyPtYIV9tkT4WDoIwI7eiMEKBuCjxqjQt5ZemQm1htPvHqNDOaWFRFt4btcwFdU8bbwgvA==
|
integrity sha512-o2Fx5rw1HxA/sbXMKGpKpqaEl7LSDOwS2zblXqedUWav0jFa08M+A/nE6KeQkpwdvmT7iNqZfRDCGEfIE6wQoA==
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
"@oxlint/darwin-arm64" "1.7.0"
|
"@oxlint-tsgolint/darwin-arm64" "0.1.6"
|
||||||
"@oxlint/darwin-x64" "1.7.0"
|
"@oxlint-tsgolint/darwin-x64" "0.1.6"
|
||||||
"@oxlint/linux-arm64-gnu" "1.7.0"
|
"@oxlint-tsgolint/linux-arm64" "0.1.6"
|
||||||
"@oxlint/linux-arm64-musl" "1.7.0"
|
"@oxlint-tsgolint/linux-x64" "0.1.6"
|
||||||
"@oxlint/linux-x64-gnu" "1.7.0"
|
"@oxlint-tsgolint/win32-arm64" "0.1.6"
|
||||||
"@oxlint/linux-x64-musl" "1.7.0"
|
"@oxlint-tsgolint/win32-x64" "0.1.6"
|
||||||
"@oxlint/win32-arm64" "1.7.0"
|
|
||||||
"@oxlint/win32-x64" "1.7.0"
|
oxlint@1.11.2:
|
||||||
|
version "1.11.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/oxlint/-/oxlint-1.11.2.tgz#d6c9ad1f550a2f2e285a4767af5afb41c5eab7d6"
|
||||||
|
integrity sha512-/MDUxbel5vrwxWgiGU6hZzhDiTv0TUlyZak+WP+SaTO709du+6F07zCDvYj5lgkAnEcFbdrUlA67HEnleGR0Zw==
|
||||||
|
optionalDependencies:
|
||||||
|
"@oxlint/darwin-arm64" "1.11.2"
|
||||||
|
"@oxlint/darwin-x64" "1.11.2"
|
||||||
|
"@oxlint/linux-arm64-gnu" "1.11.2"
|
||||||
|
"@oxlint/linux-arm64-musl" "1.11.2"
|
||||||
|
"@oxlint/linux-x64-gnu" "1.11.2"
|
||||||
|
"@oxlint/linux-x64-musl" "1.11.2"
|
||||||
|
"@oxlint/win32-arm64" "1.11.2"
|
||||||
|
"@oxlint/win32-x64" "1.11.2"
|
||||||
|
oxlint-tsgolint ">=0.0.1"
|
||||||
|
|
||||||
oy-vey@^0.12.1:
|
oy-vey@^0.12.1:
|
||||||
version "0.12.1"
|
version "0.12.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user