Skip to content

Bug: provided syntax object is not JSON-serializable, which causes ESLint to crash in certain situations #12

@andreww2012

Description

@andreww2012

tailwind4 or tailwind3 syntaxes from this package appear not to be JSON-serializable.

In cases when ESLint tries to serialize the config (for example, when --cache or --print-config option is used), it crashes with the following error:

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

Please double-check your configuration for errors.

Reproduction: https://stackblitz.com/edit/vitejs-vite-7lu9csyw

Run npx eslint --cache or npx eslint --print-config style.css.

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