Skip to content

Bug eslint --cache broken if using kit.typescript.config in svelte.config.jsΒ #1293

@rebasecase

Description

@rebasecase

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.

What version of ESLint are you using?

9.32.0

What version of eslint-plugin-svelte are you using?

6.1.1

What did you do?

Using this https://svelte.dev/docs/kit/configuration#typescript

Breaks eslint with --cache because functions can't be serialized.

https://stackblitz.com/edit/sveltejs-kit-template-default-uaahfr9a?file=eslint.config.js

What did you expect to happen?

To work fine

What actually happened?

Oops! Something went wrong! πŸ™

ESLint: 9.32.0

The requested operation requires ESLint to serialize configuration data,
but the configuration key "typescript.config" contains a function value,
which cannot be serialized.

Please double-check your configuration for errors.
This feature breaks eslint

Link to GitHub Repo with Minimal Reproducible Example

https://stackblitz.com/edit/sveltejs-kit-template-default-uaahfr9a?file=svelte.config.js

Additional comments

This is the default config from https://svelte.dev/docs/cli/eslint

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions