From 64751b4f27604eaaaa22be42acf5a8cb4941745a Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Thu, 23 May 2024 17:50:57 -0700 Subject: [PATCH] feat: improve biome config --- .editorconfig | 4 +- .eslintignore | 28 - .eslintrc.cjs | 4 - .github/dependabot.yml | 1 + .github/workflows/README.md | 2 + .github/workflows/check.yml | 78 - .github/workflows/checks.yml | 106 + .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/dependency-review.yml | 6 +- .github/workflows/docs-deploy.yml | 2 +- .github/workflows/integration.yml | 60 - .github/workflows/pull-request.yml | 19 +- .prettierignore.all | 46 - apps/console-fb/package.json | 3 +- apps/console-sc/biome.jsonc | 3 +- apps/console-sc/package.json | 145 +- apps/console-sc/playwright.config.ts | 12 +- apps/console-sc/src/app.d.ts | 16 +- apps/console-sc/src/index.test.ts | 8 +- .../dashboard/dashboard-page.svelte | 22 +- .../lib/components/dashboard/main-nav.svelte | 6 +- .../components/dashboard/recent-sales.svelte | 2 +- .../lib/components/dashboard/search.svelte | 2 +- .../components/dashboard/team-switcher.svelte | 90 +- .../lib/components/dashboard/user-nav.svelte | 6 +- apps/console-sc/src/routes/+layout.svelte | 2 +- apps/console-sc/src/routes/+page.svelte | 8 +- apps/console-sc/svelte.config.js | 34 +- apps/console-sc/tailwind.config.ts | 4 +- apps/console-sc/tests/test.ts | 4 +- apps/console-sc/tsconfig.json | 39 +- apps/console-sc/turbo.json | 90 +- apps/console-sc/vite.config.ts | 50 +- apps/console/package.json | 6 +- apps/console/src/app.d.ts | 2 +- .../lib/components/layout/go-to-top.svelte | 8 +- .../src/lib/components/layout/header.svelte | 30 +- .../layout/loading-indicator-bar.svelte | 2 +- apps/console/src/lib/nhost.ts | 2 +- .../(app)/policies/[id=uuid]/+page.server.ts | 8 +- apps/console/src/routes/+layout.svelte | 2 +- apps/docs/package.json | 2 +- apps/playground/package.json | 3 +- apps/web/package.json | 3 +- biome.jsonc | 1 + package.json | 1 + packages/biome-config/README.md | 23 + packages/biome-config/library.jsonc | 12 + packages/biome-config/package.json | 18 + packages/biome-config/root.jsonc | 81 + packages/biome-config/svelte-library.jsonc | 86 + packages/biome-config/svelte.jsonc | 86 + packages/skeleton-ui/package.json | 3 +- packages/ui/package.json | 3 +- packages/utils/package.json | 3 +- pnpm-lock.yaml | 1934 +---------------- 56 files changed, 785 insertions(+), 2438 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.cjs delete mode 100644 .github/workflows/check.yml create mode 100644 .github/workflows/checks.yml delete mode 100644 .github/workflows/integration.yml delete mode 100644 .prettierignore.all create mode 100644 packages/biome-config/README.md create mode 100644 packages/biome-config/library.jsonc create mode 100644 packages/biome-config/package.json create mode 100644 packages/biome-config/root.jsonc create mode 100644 packages/biome-config/svelte-library.jsonc create mode 100644 packages/biome-config/svelte.jsonc diff --git a/.editorconfig b/.editorconfig index fcd42d8b4..bce9ca3a1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,7 +3,7 @@ root = true [*] charset = utf-8 -indent_style = tab +indent_style = space indent_size = 2 end_of_line = lf insert_final_newline = true @@ -13,6 +13,8 @@ trim_trailing_whitespace = true max_line_length = off # http://jonasbn.github.io/til/editorconfig/markdown.html trim_trailing_whitespace = false +# Make only works with tab indentation +indent_style = tab [{*.yaml, *.yml}] indent_size = 2 diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 868b313de..000000000 --- a/.eslintignore +++ /dev/null @@ -1,28 +0,0 @@ -.DS_Store -node_modules - -# Ignore files for PNPM, NPM and YARN -pnpm-lock.yaml -package-lock.json -yarn.lock - -# vercel # -################### -/examples -/functions - -/.vercel_build_output -.vercel_build_output - -# Project files # -############################# -/TODO -CHANGELOG.md -.idea -dev-dist -/infra/helm -infra/hasura -# generated files by inlang -/apps/**/src/i18n -# generated files by shadcn -packages/ui/src/lib/components/ui diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index 24dc02f59..000000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - root: true, - extends: ['./packages/eslint-config/all', 'turbo'] -}; diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6306bbed5..8c176e85c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -29,3 +29,4 @@ updates: schedule: day: sunday interval: weekly + open-pull-requests-limit: 5 diff --git a/.github/workflows/README.md b/.github/workflows/README.md index bcd4b8769..c50152338 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -4,8 +4,10 @@ Automating tasks with GitHub Actions ## TODO +- [megalinter](https://raw.githubusercontent.com/oxsecurity/megalinter/main/TEMPLATES/mega-linter.yml) replace super-linter - https://github.com/marketplace/actions/turbo-changed - https://github.com/Trampoline-CX/action-turbo-changed/blob/main/.github/workflows/example-pull_request.yml +- Biome https://github.com/ethereumfollowprotocol/api/blob/develop/.github/workflows/deploy.yml ### Examples diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml deleted file mode 100644 index 828ceaea4..000000000 --- a/.github/workflows/check.yml +++ /dev/null @@ -1,78 +0,0 @@ -name: Check - -on: - push: - # This should disable running the workflow on tags, according to the - # on.. GitHub Actions docs. - # branches: ['*'] - branches: [main] - paths-ignore: - - 'README.md' - - 'docs' - - 'infra' - - 'nhost' -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - commit: - name: Check conventional commit compliance - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Conventional commits check - uses: cocogitto/cocogitto-action@v3 - with: - check-latest-tag-only: true - # linter: - # name: Lint Code Base - # runs-on: ubuntu-latest - # steps: - # - name: Checkout Code - # uses: actions/checkout@v4 - # with: - # # Full git history is needed to get a proper list of changed files within `super-linter` - # fetch-depth: 0 - # - name: Lint Code Base - # uses: github/super-linter@v5 - # env: - # VALIDATE_ALL_CODEBASE: false - # IGNORE_GENERATED_FILES: true - # # FILTER_REGEX_EXCLUDE: CHANGELOG.md - # DEFAULT_BRANCH: main - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - check: - name: Check tests pass - timeout-minutes: 15 - runs-on: ubuntu-latest - # To use Remote Caching, uncomment the next lines and follow the steps below. - env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ vars.TURBO_TEAM }} - steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 2 # for turbo only run tasks for changed workspaces. - - name: โš™๏ธ Setup - uses: ./.github/actions/setup - - name: ๐Ÿงช Test coverage - run: turbo test:unit:coverage --filter='[HEAD^1]' -# steps: -# - name: Check out code -# uses: actions/checkout@v4 -# with: -# fetch-depth: 2 -# - uses: oven-sh/setup-bun@v1 -# with: -# bun-version: latest -# - name: Install Dependencies -# run: bun install -# # - run: bun run check --filter=docs -# # - run: bun run lint --filter=docs -# - run: bun run build --filter=docs -# - run: bun run --filter=docs test:unit:coverage diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 000000000..f87594481 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,106 @@ +name: Checks + +on: + # allow workflow to be called from other workflows + workflow_call: + # allow workflow to be called from github.com UI + workflow_dispatch: + push: + # This should disable running the workflow on tags, according to the + branches-ignore: [main] + tags-ignore: + - '**' + + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} + cancel-in-progress: true + +permissions: + actions: read + contents: read + # To report GitHub Actions status checks + statuses: write + pull-requests: write + security-events: write + id-token: write + +env: + NODE_OPTIONS: '--no-warnings' + # ACTIONS_RUNNER_DEBUG: true + +jobs: + checks: + name: ๐Ÿ”Ž Checks + timeout-minutes: 3 + runs-on: ubuntu-latest + steps: + - name: ๐Ÿ”‘ Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: ๐ŸŒผ Conventional Commits + uses: cocogitto/cocogitto-action@v3 + with: + check-latest-tag-only: true + - name: ๐Ÿฆถ Setup Biome CLI + uses: biomejs/setup-biome@v2 + with: + version: 1.7.3 + - name: ๐Ÿงน Lint code + run: biome ci . + + tests: + name: Build and Test + timeout-minutes: 15 + runs-on: ubuntu-latest + # To use Remote Caching, uncomment the next lines and follow the steps below. + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 2 # for turbo only run tasks for changed workspaces. + - name: โš™๏ธ Setup + uses: ./.github/actions/setup + - name: ๐Ÿงน Lint + run: turbo lint --filter='[HEAD^1]' + - name: ๐Ÿ—๏ธ Build packages + run: turbo build --filter './packages/*' --continue + - name: ๐Ÿงช Test + # TODO: remove this once all paths are testing-ready + continue-on-error: true + run: turbo test:unit:coverage --filter='[HEAD^1]' + + ## Bun ## + # - name: ๐Ÿฐ Setup Bun + # uses: oven-sh/setup-bun@v1 + # with: + # bun-version: latest + # - name: ๐Ÿ“ฆ Install Dependencies + # run: bun install + # - name: ๐Ÿ”ง Build + # run: bun run build --filter='[HEAD^1]' + # - name: ๐Ÿงช Test + # # TODO: remove this once all paths are testing-ready + # continue-on-error: true + # env: + # NODE_ENV: test + # API_URL: http://localhost:8787/api/v1 + # run: bun test:unit:coverage --filter='[HEAD^1]' + + audit: + runs-on: ubuntu-latest + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + - name: โš™๏ธ Setup + uses: ./.github/actions/setup + - name: ๐Ÿพ Audit dependencies + uses: snyk/actions/node@master + with: + args: --all-projects --severity-threshold high --fail-on all + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4046a22c7..156d33fb4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -33,7 +33,7 @@ jobs: strategy: fail-fast: false matrix: - language: ['javascript', 'TypeScript'] + language: ['TypeScript'] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] # Learn more: # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index b9d6d20ff..33a2f6cc5 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,5 +1,9 @@ name: 'Dependency Review' -on: [pull_request] + +on: + pull_request: + paths: + - '**/package.json' permissions: contents: read diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 4421758c1..e43bb48c4 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -17,7 +17,7 @@ permissions: id-token: write concurrency: - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true env: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml deleted file mode 100644 index 5ac2856e9..000000000 --- a/.github/workflows/integration.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Integration - -on: - pull_request: - branches: [main] - types: [opened, reopened, synchronize] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - cog_check: - name: check conventional commit compliance - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Conventional commits check - uses: cocogitto/cocogitto-action@v3 - with: - check-latest-tag-only: true - # audit: - # runs-on: ubuntu-latest - # steps: - # - name: ๐Ÿ“ฅ Checkout - # uses: actions/checkout@v4 - # - name: โš™๏ธ Setup - # uses: ./.github/actions/setup - # - name: ๐Ÿพ Audit dependencies - # uses: snyk/actions/node@master - # with: - # args: --all-projects --severity-threshold high --fail-on all - # env: - # SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - - test: - name: Build and Test - timeout-minutes: 15 - runs-on: ubuntu-latest - # To use Remote Caching, uncomment the next lines and follow the steps below. - env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ vars.TURBO_TEAM }} - - steps: - - name: ๐Ÿ“ฅ Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 2 # for turbo only run tasks for changed workspaces. - - name: โš™๏ธ Setup - uses: ./.github/actions/setup - - name: ๐Ÿ—๏ธ Build packages - run: turbo build --filter './packages/*' --continue - - name: ๐Ÿ”ฆ Lint code - run: turbo lint --filter='[HEAD^1]' - - name: ๐Ÿงช Test coverage - run: turbo test:unit:coverage --filter='[HEAD^1]' diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 99b590d73..1ee092a71 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -6,27 +6,24 @@ on: branches: [main] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} cancel-in-progress: true jobs: - lint: + lints: runs-on: ubuntu-latest steps: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - - name: ๐Ÿ–๏ธ Conventional commits check - uses: cocogitto/cocogitto-action@main - with: - check-latest-tag-only: true - - name: ๐Ÿ”ฆ Lint pull request title + - name: ๐Ÿ–๏ธ Lint pull request title uses: cocogitto/cocogitto-action@main with: verify: ${{ github.event.pull_request.title }} - # run: cog verify <<< "$TITLE" - # env: - # TITLE: ${{ github.event.pull_request.title }} - # - name: ๐Ÿ“ Check changeset status + # - name: ๐Ÿฆ‹ Check changeset status # run: pnpm exec changeset status --since origin/main + + checks: + uses: './.github/workflows/checks.yml' + diff --git a/.prettierignore.all b/.prettierignore.all deleted file mode 100644 index f96b0cf56..000000000 --- a/.prettierignore.all +++ /dev/null @@ -1,46 +0,0 @@ -.DS_Store -.svelte-kit -node_modules -/build -/package -.env -.env.* -!.env.example -vite.config.js* - -# Ignore files for PNPM, NPM and YARN -pnpm-lock.yaml -pnpm-workspace.yaml -package-lock.json -yarn.lock - -.vercel_build_output/** -static/** -/coverage -CHANGELOG.md -src/lib/models/types/** -.idea -dev-dist - -## custom -/infra/helm/templates/deployment.yaml -infra/helm/templates/ingress.yaml -infra/hasura -**/*.min.css - -**/.turbo -/.nhost/ -/nhost/* -!/nhost/emails/ -/apps/story/storybook-static/ -/apps/*/.svelte-kit -/apps/*/$houdini/ -/apps/*/schema.graphql - -.vercel/ -.astro/ - -# generated files by inlang -/apps/**/src/i18n -# generated files by shadcn -packages/ui/components diff --git a/apps/console-fb/package.json b/apps/console-fb/package.json index 1fd5382b9..1ff56e570 100644 --- a/apps/console-fb/package.json +++ b/apps/console-fb/package.json @@ -11,7 +11,7 @@ "dev:debug": "DEBUG=* dotenv-run -f .env -f .secrets -v '.*' -u -- vite dev", "dev:prod": "NODE_ENV=prod dotenv-run -f .env -f .secrets -v -- vite dev", "dev:sw": "SW_DEV=true dotenv-run -f .env -f .secrets -v -- vite dev", - "format": "biome format . --write", + "format": "biome format --write .", "lint": "biome check .", "generate": "concurrently pnpm:generate:*", "generate:pull-schema": "dotenv-run -f .env -f .secrets -v -- houdini pull-schema", @@ -35,6 +35,7 @@ "@neodrag/svelte": "2.0.6", "@popperjs/core": "2.11.8", "@skeletonlabs/skeleton": "2.10.0", + "@spectacular/biome-config": "workspace:*", "@spectacular/typescript-config": "workspace:*", "@spectacular/utils": "workspace:*", "@svelte-put/resize": "3.0.1", diff --git a/apps/console-sc/biome.jsonc b/apps/console-sc/biome.jsonc index 784b6d855..c1c4c41e3 100644 --- a/apps/console-sc/biome.jsonc +++ b/apps/console-sc/biome.jsonc @@ -1,3 +1,4 @@ { - "extends": ["../../biome.json"] + "$schema": "https://biomejs.dev/schemas/1.7.3/schema.json", + "extends": ["@spectacular/biome-config/svelte"] } diff --git a/apps/console-sc/package.json b/apps/console-sc/package.json index ccbac60a3..bf86d4058 100644 --- a/apps/console-sc/package.json +++ b/apps/console-sc/package.json @@ -1,74 +1,75 @@ { - "name": "console-sc", - "version": "0.0.1", - "private": true, - "type": "module", - "scripts": { - "build": "dotenv-run -f .env -f .secrets -v -- vite build", - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "dev": "dotenv-run -f .env -f .secrets -v -- vite dev", - "dev:debug": "DEBUG=* dotenv-run -f .env -f .secrets -v '.*' -u -- vite dev", - "dev:sw": "SW_DEV=true dotenv-run -f .env -f .secrets -v -- vite dev", - "format": "biome format . --write", - "lint": "biome check .", - "preview": "ORIGIN=https://console.traefik.me:4173 dotenv-run -f .env -f .secrets -v -- vite preview", - "sync": "dotenv-run -f .env -f .secrets -v -- svelte-kit sync", - "test": "pnpm run test:integration && pnpm run test:unit", - "test:integration": "dotenv-run -f .env -f .secrets -v -- playwright test", - "test:unit": "dotenv-run -f .env -f .secrets -v -- vitest", - "test:unit:coverage": "dotenv-run -f .env -f .secrets -v -- vitest run --coverage", - "test:unit:ui": "dotenv-run -f .env -f .secrets -v -- vitest --ui" - }, - "devDependencies": { - "@fontsource-variable/inter": "5.0.18", - "@internationalized/date": "3.5.3", - "@spectacular/typescript-config": "workspace:*", - "@spectacular/ui": "workspace:*", - "@spectacular/utils": "workspace:*", - "@sveltejs/adapter-auto": "3.2.0", - "@sveltejs/adapter-node": "5.0.1", - "@sveltejs/adapter-vercel": "5.3.0", - "@sveltejs/enhanced-img": "0.2.0", - "@sveltejs/kit": "2.5.9", - "@sveltejs/vite-plugin-svelte": "3.1.0", - "@tailwindcss/container-queries": "0.1.1", - "@tailwindcss/forms": "0.5.7", - "@tailwindcss/typography": "0.5.13", - "@types/node": "20.12.12", - "@vercel/analytics": "1.2.2", - "@vincjo/datatables": "1.14.5", - "@vitest/coverage-v8": "1.6.0", - "autoprefixer": "10.4.19", - "bits-ui": "0.21.8", - "clsx": "2.1.1", - "cmdk-sv": "0.0.17", - "cssnano": "7.0.1", - "formsnap": "1.0.0", - "lucide-svelte": "0.378.0", - "postcss": "8.4.38", - "postcss-import": "16.1.0", - "postcss-load-config": "5.1.0", - "postcss-nested": "6.0.1", - "svelte": "4.2.17", - "svelte-check": "3.7.1", - "svelte-radix": "1.1.0", - "sveltekit-rate-limiter": "0.5.1", - "sveltekit-superforms": "2.13.1", - "sveltekit-view-transition": "0.5.3", - "tailwind-merge": "2.3.0", - "tailwind-variants": "0.2.1", - "tailwindcss": "3.4.3", - "tailwindcss-animate": "1.0.7", - "tslib": "2.6.2", - "typescript": "5.4.5", - "vite": "5.2.11", - "vite-plugin-tailwind-purgecss": "0.3.3", - "vitest": "1.6.0", - "zod": "3.23.8" - }, - "optionalDependencies": { - "@playwright/test": "1.44.0", - "@vitest/ui": "1.6.0" - } + "name": "console-sc", + "version": "0.0.1", + "private": true, + "type": "module", + "scripts": { + "build": "dotenv-run -f .env -f .secrets -v -- vite build", + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "dev": "dotenv-run -f .env -f .secrets -v -- vite dev", + "dev:debug": "DEBUG=* dotenv-run -f .env -f .secrets -v '.*' -u -- vite dev", + "dev:sw": "SW_DEV=true dotenv-run -f .env -f .secrets -v -- vite dev", + "format": "biome check --apply .", + "lint": "biome check .", + "preview": "ORIGIN=https://console.traefik.me:4173 dotenv-run -f .env -f .secrets -v -- vite preview", + "sync": "dotenv-run -f .env -f .secrets -v -- svelte-kit sync", + "test": "pnpm run test:integration && pnpm run test:unit", + "test:integration": "dotenv-run -f .env -f .secrets -v -- playwright test", + "test:unit": "dotenv-run -f .env -f .secrets -v -- vitest", + "test:unit:coverage": "dotenv-run -f .env -f .secrets -v -- vitest run --coverage", + "test:unit:ui": "dotenv-run -f .env -f .secrets -v -- vitest --ui" + }, + "devDependencies": { + "@fontsource-variable/inter": "5.0.18", + "@internationalized/date": "3.5.3", + "@spectacular/biome-config": "workspace:*", + "@spectacular/typescript-config": "workspace:*", + "@spectacular/ui": "workspace:*", + "@spectacular/utils": "workspace:*", + "@sveltejs/adapter-auto": "3.2.0", + "@sveltejs/adapter-node": "5.0.1", + "@sveltejs/adapter-vercel": "5.3.0", + "@sveltejs/enhanced-img": "0.2.0", + "@sveltejs/kit": "2.5.9", + "@sveltejs/vite-plugin-svelte": "3.1.0", + "@tailwindcss/container-queries": "0.1.1", + "@tailwindcss/forms": "0.5.7", + "@tailwindcss/typography": "0.5.13", + "@types/node": "20.12.12", + "@vercel/analytics": "1.2.2", + "@vincjo/datatables": "1.14.5", + "@vitest/coverage-v8": "1.6.0", + "autoprefixer": "10.4.19", + "bits-ui": "0.21.8", + "clsx": "2.1.1", + "cmdk-sv": "0.0.17", + "cssnano": "7.0.1", + "formsnap": "1.0.0", + "lucide-svelte": "0.378.0", + "postcss": "8.4.38", + "postcss-import": "16.1.0", + "postcss-load-config": "5.1.0", + "postcss-nested": "6.0.1", + "svelte": "4.2.17", + "svelte-check": "3.7.1", + "svelte-radix": "1.1.0", + "sveltekit-rate-limiter": "0.5.1", + "sveltekit-superforms": "2.13.1", + "sveltekit-view-transition": "0.5.3", + "tailwind-merge": "2.3.0", + "tailwind-variants": "0.2.1", + "tailwindcss": "3.4.3", + "tailwindcss-animate": "1.0.7", + "tslib": "2.6.2", + "typescript": "5.4.5", + "vite": "5.2.11", + "vite-plugin-tailwind-purgecss": "0.3.3", + "vitest": "1.6.0", + "zod": "3.23.8" + }, + "optionalDependencies": { + "@playwright/test": "1.44.0", + "@vitest/ui": "1.6.0" + } } diff --git a/apps/console-sc/playwright.config.ts b/apps/console-sc/playwright.config.ts index 3cf8326d6..7917352f4 100644 --- a/apps/console-sc/playwright.config.ts +++ b/apps/console-sc/playwright.config.ts @@ -1,12 +1,12 @@ import type { PlaywrightTestConfig } from '@playwright/test'; const config: PlaywrightTestConfig = { - webServer: { - command: 'pnpm run build && pnpm run preview', - port: 4173 - }, - testDir: 'tests', - testMatch: /(.+\.)?(test|spec)\.[jt]s/ + webServer: { + command: 'pnpm run build && pnpm run preview', + port: 4173, + }, + testDir: 'tests', + testMatch: /(.+\.)?(test|spec)\.[jt]s/, }; export default config; diff --git a/apps/console-sc/src/app.d.ts b/apps/console-sc/src/app.d.ts index 743f07b2e..96e4b42a1 100644 --- a/apps/console-sc/src/app.d.ts +++ b/apps/console-sc/src/app.d.ts @@ -1,13 +1,13 @@ // See https://kit.svelte.dev/docs/types#app // for information about these interfaces declare global { - namespace App { - // interface Error {} - // interface Locals {} - // interface PageData {} - // interface PageState {} - // interface Platform {} - } + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + // interface PageState {} + // interface Platform {} + } } -export {}; +export type {}; diff --git a/apps/console-sc/src/index.test.ts b/apps/console-sc/src/index.test.ts index e07cbbd72..aa9342637 100644 --- a/apps/console-sc/src/index.test.ts +++ b/apps/console-sc/src/index.test.ts @@ -1,7 +1,7 @@ -import { describe, it, expect } from 'vitest'; +import { describe, expect, it } from 'vitest'; describe('sum test', () => { - it('adds 1 + 2 to equal 3', () => { - expect(1 + 2).toBe(3); - }); + it('adds 1 + 2 to equal 3', () => { + expect(1 + 2).toBe(3); + }); }); diff --git a/apps/console-sc/src/lib/components/dashboard/dashboard-page.svelte b/apps/console-sc/src/lib/components/dashboard/dashboard-page.svelte index 0e0562ce8..c35689eaa 100644 --- a/apps/console-sc/src/lib/components/dashboard/dashboard-page.svelte +++ b/apps/console-sc/src/lib/components/dashboard/dashboard-page.svelte @@ -1,16 +1,16 @@
diff --git a/apps/console-sc/src/lib/components/dashboard/main-nav.svelte b/apps/console-sc/src/lib/components/dashboard/main-nav.svelte index 361755617..fee35ca3e 100644 --- a/apps/console-sc/src/lib/components/dashboard/main-nav.svelte +++ b/apps/console-sc/src/lib/components/dashboard/main-nav.svelte @@ -1,8 +1,8 @@