Skip to content

Functions and Mixins module treated as unknown at rules #2913

@KTibow

Description

@KTibow

Describe the bug

Various at rules from the Functions and Mixins module aren't recognized, instead treated as unknown at rules. It's not clear how to ignore them.

/t/hi> pnpm check

> [email protected] check /tmp/hi
> svelte-kit sync && svelte-check --tsconfig ./tsconfig.json

Loading svelte-check in workspace: /tmp/hi
Getting Svelte diagnostics...

/tmp/hi/src/routes/+page.svelte:8:3
Warn: Unknown at rule @function (css)
<style>
  @function --echo(--size) {
    result: var(--size);

====================================
svelte-check found 0 errors and 1 warning in 1 file
⏎             

Reproduction

<style>
  @function --echo(--size) {
    result: var(--size);
  }
</style>

Expected behaviour

@function, @mixin, and @apply should be recognized, or at least it should be clear how to ignore these warnings.

System Info

  • OS: Linux
  • IDE: Zed but N/A

Which package is the issue about?

svelte-check

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions