mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-02 21:03:34 +03:00
# Description of Changes Smaller scope than #6689 to try and get this finished. Replace ESLint and dpdm with Oxlint, a TS linter written in Rust so its performance is dramatically better than the existing tools we use. ## Speed improvement - Current ESLint run: 13.76s - Current dpdm run: 3.59s - Total time: 17.35s - New Oxlint run: 0.90s So Oxlint is about a 20x speed improvement. ## Differences When I last tried to do this, we could recreate our rules identically with Oxlint, but that's not true any more. Oxlint has no current equivalent for ESLint's `no-restricted-syntax` rule, which we were using to ban usages of `<button>` and stuff in specific components to try and encourage them to use our shared UI. This is a very recent addition to our linting config, and personally I'm willing to drop it for now at least. We can still ban specific imports in files, so the files which we were trying to enforce shared UI will still ban directly importing Mantine, so that'll probably be most of the cases still caught, but I think there are other ways we can encourage using the shared UI beyond just using the linter for it. I did try building a custom TS rule for it and it only slowed it down a tiny bit (it took 1.1s) but it had to be built on an unreleased alpha API which just sounds like a maintenance headache we don't need to deal with for a rule that we don't really need.
157 lines
3.5 KiB
YAML
157 lines
3.5 KiB
YAML
# To get started with Dependabot version updates, you'll need to specify which
|
|
# package ecosystems to update and where the package manifests are located.
|
|
# Please see the documentation for all configuration options:
|
|
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
|
|
version: 2
|
|
updates:
|
|
- package-ecosystem: "gradle" # See documentation for possible values
|
|
directories:
|
|
- "/" # Location of package manifests
|
|
- "/app/common"
|
|
- "/app/core"
|
|
- "/app/proprietary"
|
|
schedule:
|
|
interval: "weekly"
|
|
cooldown:
|
|
default-days: 7
|
|
rebase-strategy: "auto"
|
|
|
|
- package-ecosystem: "docker"
|
|
directories:
|
|
- "/" # Location of Dockerfile
|
|
- "/docker/backend"
|
|
- "/docker/embedded"
|
|
- "/docker/frontend"
|
|
- "/docker/base"
|
|
- "/docker/engine"
|
|
- "/docker/unoserver"
|
|
- "/engine"
|
|
schedule:
|
|
interval: "weekly"
|
|
cooldown:
|
|
default-days: 7
|
|
rebase-strategy: "auto"
|
|
|
|
- package-ecosystem: github-actions
|
|
directory: /
|
|
schedule:
|
|
interval: weekly
|
|
cooldown:
|
|
default-days: 7
|
|
rebase-strategy: "auto"
|
|
|
|
- package-ecosystem: npm
|
|
directories:
|
|
- /devTools
|
|
- /frontend
|
|
schedule:
|
|
interval: "weekly"
|
|
cooldown:
|
|
default-days: 7
|
|
rebase-strategy: "auto"
|
|
groups:
|
|
embedpdf:
|
|
patterns:
|
|
- "@embedpdf/*"
|
|
mantine:
|
|
patterns:
|
|
- "@mantine/*"
|
|
- "postcss-preset-mantine"
|
|
mui:
|
|
patterns:
|
|
- "@mui/*"
|
|
tauri-js:
|
|
patterns:
|
|
- "@tauri-apps/*"
|
|
emotion:
|
|
patterns:
|
|
- "@emotion/*"
|
|
react:
|
|
patterns:
|
|
- "react"
|
|
- "react-dom"
|
|
- "@types/react"
|
|
- "@types/react-dom"
|
|
vite:
|
|
patterns:
|
|
- "vite"
|
|
- "vite-*"
|
|
- "@vitejs/*"
|
|
vitest:
|
|
patterns:
|
|
- "vitest"
|
|
- "@vitest/*"
|
|
testing-library:
|
|
patterns:
|
|
- "@testing-library/*"
|
|
i18next:
|
|
patterns:
|
|
- "i18next"
|
|
- "i18next-*"
|
|
- "react-i18next"
|
|
iconify:
|
|
patterns:
|
|
- "@iconify/*"
|
|
- "@iconify-json/*"
|
|
stripe:
|
|
patterns:
|
|
- "@stripe/*"
|
|
posthog:
|
|
patterns:
|
|
- "@posthog/*"
|
|
- "posthog-js"
|
|
supabase:
|
|
patterns:
|
|
- "@supabase/*"
|
|
dnd-kit:
|
|
patterns:
|
|
- "@dnd-kit/*"
|
|
tailwind:
|
|
patterns:
|
|
- "tailwindcss"
|
|
- "@tailwindcss/*"
|
|
postcss:
|
|
patterns:
|
|
- "postcss"
|
|
- "postcss-*"
|
|
exclude-patterns:
|
|
- "postcss-preset-mantine"
|
|
|
|
- package-ecosystem: cargo
|
|
directories:
|
|
- /frontend/editor/src-tauri
|
|
- /frontend/editor/src-tauri/thumbnail-handler
|
|
- /frontend/editor/src-tauri/provisioner
|
|
schedule:
|
|
interval: "weekly"
|
|
cooldown:
|
|
default-days: 7
|
|
rebase-strategy: "auto"
|
|
groups:
|
|
tauri:
|
|
patterns:
|
|
- "tauri"
|
|
- "tauri-build"
|
|
- "tauri-plugin-*"
|
|
serde:
|
|
patterns:
|
|
- "serde"
|
|
- "serde_*"
|
|
tracing:
|
|
patterns:
|
|
- "tracing"
|
|
- "tracing-*"
|
|
tokio:
|
|
patterns:
|
|
- "tokio"
|
|
- "tokio-*"
|
|
|
|
- package-ecosystem: pip
|
|
directory: /testing/cucumber
|
|
schedule:
|
|
interval: "weekly"
|
|
cooldown:
|
|
default-days: 7
|
|
rebase-strategy: "auto"
|