Skip to content
Source
Sign inSign up
TanStack/pacer

chore(svelte-pacer): add 'eslint-plugin-svelte' to lint '.svelte' files #301

Mergedsukvvon(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/301/headmerged by sukvvon(GitHub profile, opens in a new tab)

🎯 Changes

Add eslint-plugin-svelte's recommended config to svelte-pacer so that .svelte and .svelte.ts files are linted, using the same config as svelte-pacer-devtools.

  • Parse .svelte, .svelte.ts and .svelte.js files with @typescript-eslint/parser and the package's svelte.config.js.
  • Require lang="ts" in script blocks (svelte/block-lang) and forbid svelte/internal imports (svelte/no-svelte-internal).
  • Add eslint-plugin-svelte and @typescript-eslint/parser as devDependencies.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with pnpm run test:pr, or these tests do not apply to this pull request.
  • I fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Chores
    • Updated lint checks for Svelte components and TypeScript script blocks, including compile validation and rules for internal Svelte usage.
    • The Svelte package now uses the root lint configuration alongside Svelte-specific recommendations, providing more consistent checks across the package. These changes affect development checks only; no user-facing functionality changed.
    1. ⚠️ No Changeset found

      Latest commit: 73b7e8ab3b23a810184fab56bc3c89b902bd97b0

      Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

      This PR includes no changesets

      When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

      Click here to learn what changesets are, and how to add one.

      Click here if you're a maintainer who wants to add a changeset to this PR

    2. 🚀 Changeset Version Preview

      No changeset entries found. Merging this PR will not cause a version bump for any packages.

    3. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit 73b7e8ab3b23a810184fab56bc3c89b902bd97b0

      CommandStatusDurationResult
      nx run-many --targets=build --exclude=examples/**✅ Succeeded1sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-10-25 02:11:10 UTC

    4. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →
      Walkthrough

      The Svelte package adds ESLint dependencies and configures Svelte and TypeScript linting for .svelte, .svelte.ts, and .svelte.js files.

      Changes: Svelte ESLint configuration

      Layer / File(s)Summary
      Svelte lint setup
      packages/svelte-pacer/package.json, packages/svelte-pacer/eslint.config.js
      Adds @typescript-eslint/parser and eslint-plugin-svelte. The ESLint config combines the root config with Svelte’s recommended config and sets parsing and rules for Svelte files.
      Priority: Low

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Other

      Suggested reviewers: kevinvandy

      Merge Risk: Minimal · up to 73b7e

      The lint configuration and dependency ranges are consistent with repository conventions and are mergeable.

      Pre-merge checks: Passed 5
      Check nameStatusExplanation
      Title checkPassedThe title names the main change: adding eslint-plugin-svelte to lint .svelte files in svelte-pacer. The changeset adds an ESLint config for Svelte files and the two devDependencies that support it. Th…
      Description checkPassedThe description follows the template. It has a Changes section that explains the change and its motivation, using the same config as svelte-pacer-devtools. It lists the parser, the svelte/block-lang a…
      Docstring CoveragePassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Full details: Title check

      Explanation

      The title names the main change: adding eslint-plugin-svelte to lint .svelte files in svelte-pacer. The changeset adds an ESLint config for Svelte files and the two devDependencies that support it. The title uses the conventional chore(...) prefix, which fits a dev-only change. It is 71 characters, within a typical limit.

      Full details: Description check

      Explanation

      The description follows the template. It has a Changes section that explains the change and its motivation, using the same config as svelte-pacer-devtools. It lists the parser, the svelte/block-lang and svelte/no-svelte-internal rules, and the added devDependencies. The checklist items are filled in. The release impact section marks the change as docs/CI/dev-only with no changeset, which matches the scope of a dev-only lint change. The description does not state which tests ran with pnpm run test:pr, but the checklist covers that item.

      Full details: Docstring Coverage

      Explanation

      No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

      Finishing Touches
      📝 Generate docstrings
      • Commit to this branch
      • Create a new PR
      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    5. More templates

      @tanstack/alpine-pacer

      npm i https://pkg.pr.new/@tanstack/alpine-pacer@301

      @tanstack/angular-pacer

      npm i https://pkg.pr.new/@tanstack/angular-pacer@301

      @tanstack/angular-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/angular-pacer-devtools@301

      @tanstack/ember-pacer

      npm i https://pkg.pr.new/@tanstack/ember-pacer@301

      @tanstack/lit-pacer

      npm i https://pkg.pr.new/@tanstack/lit-pacer@301

      @tanstack/octane-pacer

      npm i https://pkg.pr.new/@tanstack/octane-pacer@301

      @tanstack/pacer

      npm i https://pkg.pr.new/@tanstack/pacer@301

      @tanstack/pacer-devtools

      npm i https://pkg.pr.new/@tanstack/pacer-devtools@301

      @tanstack/pacer-lite

      npm i https://pkg.pr.new/@tanstack/pacer-lite@301

      @tanstack/preact-pacer

      npm i https://pkg.pr.new/@tanstack/preact-pacer@301

      @tanstack/preact-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/preact-pacer-devtools@301

      @tanstack/react-pacer

      npm i https://pkg.pr.new/@tanstack/react-pacer@301

      @tanstack/react-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/react-pacer-devtools@301

      @tanstack/solid-pacer

      npm i https://pkg.pr.new/@tanstack/solid-pacer@301

      @tanstack/solid-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/solid-pacer-devtools@301

      @tanstack/svelte-pacer

      npm i https://pkg.pr.new/@tanstack/svelte-pacer@301

      @tanstack/svelte-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/svelte-pacer-devtools@301

      @tanstack/vue-pacer

      npm i https://pkg.pr.new/@tanstack/vue-pacer@301

      @tanstack/vue-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/vue-pacer-devtools@301

      commit: 73b7e8a

    6. 🔇 Additional comments: 2
      packages/svelte-pacer/eslint.config.js: 1

      3-4: LGTM!

      Also applies to: 7-31

      packages/svelte-pacer/package.json: 1

      124-125: Trivial · Security & Privacy · Quick win

      ⚠️ Unverified finding Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

      Pin the new lint dependencies to exact versions.

      A non-frozen install can select later minor or patch releases from these caret ranges. Both packages run as development tooling. Exact pins make tooling updates deliberate. (docs.npmjs.com)

      Based on learnings, security-sensitive development tooling should use exact version pins rather than caret ranges.

      Source: Learnings


      Review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between 342ed130bfd7eac38061b366b02b18606bdbe87b and 73b7e8ab3b23a810184fab56bc3c89b902bd97b0.

      Files ignored due to path filters: 1
      • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
      Files selected for processing: 2
      • packages/svelte-pacer/eslint.config.js
      • packages/svelte-pacer/package.json

      Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Sign in to join this conversation.