Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to ignore warnings similar to eslint-ignore #2275

Open
gauntface opened this issue Jan 29, 2024 · 1 comment
Open

Ability to ignore warnings similar to eslint-ignore #2275

gauntface opened this issue Jan 29, 2024 · 1 comment
Labels
feature request New feature or request upstream

Comments

@gauntface
Copy link

gauntface commented Jan 29, 2024

Description

I wanted to make use of the new field-sizing property in a component and this causes an issue in VSCode and svelte-check because it's an "unknown field".

At the moment, I can't see a way to surpress the warning for this in svelte-check which seems like the best option for me to do what I want is to disable svelte-check.

Warn: Unknown property: 'field-sizing' (css)

Proposed solution

Provide a mechanism to ignore certain lines and/or blocks of CSS/JS

Alternatives

  • Provide a mechanism to enable / disable rules (Good but realistically I like this rule in general)

Additional Information, eg. Screenshots

No response

@dummdidumm dummdidumm added upstream feature request New feature or request labels Feb 5, 2024
@dummdidumm
Copy link
Member

We're using the vscode-css-languageservice which provides these warnings, and that package has no way to silence errors, so our hands are tied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request upstream
Projects
None yet
Development

No branches or pull requests

2 participants