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

How to handle linting for props spread in Svelte Pug? #580

Open
geoidesic opened this issue Feb 25, 2023 · 2 comments
Open

How to handle linting for props spread in Svelte Pug? #580

geoidesic opened this issue Feb 25, 2023 · 2 comments

Comments

@geoidesic
Copy link

geoidesic commented Feb 25, 2023

E.g.

<input {...$$restProps}/>

I tried this as per the docs, but it doesn't work:

input("{...$$restProps}")

Linting throws an unexpected token for the spread operator

@geoidesic geoidesic reopened this Feb 25, 2023
@geoidesic
Copy link
Author

geoidesic commented Feb 25, 2023

Closed accidentally, re-opened

@dummdidumm
Copy link
Member

What kind of linting? Note that IDE/ESlint support for Pug inside templates is lacking

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

No branches or pull requests

2 participants