diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 89e9f23..bf5ad77 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,14 +28,6 @@ jobs: purge-prefixes: nix-${{ runner.os }}- purge-created: 0 purge-primary-key: never - paths: | - ~/.cache/go-build - ~/go/pkg/mod - ~/.npm - - - name: Install npm packages - working-directory: ./client - run: npm ci --legacy-peer-deps - name: Lint run: nix develop --command ts-lint \ No newline at end of file diff --git a/flake.nix b/flake.nix index 5dfcd56..7124abb 100644 --- a/flake.nix +++ b/flake.nix @@ -72,6 +72,9 @@ # Svelte frontend nodejs_22 + eslint + nodePackages.svelte-check + nodePackages.prettier # Helper scripts (writeShellApplication { @@ -180,8 +183,9 @@ cd "''${git_root}/client" echo "Linting client" - npm run check - npm run lint + svelte-check --tsconfig ./tsconfig.json + prettier --check . + eslint . cd "''${git_root}/server" echo "Linting server"