sveltejs / svelte-preprocess

A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more.
MIT License
1.73k stars 147 forks source link

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

Open geoidesic opened 1 year ago

geoidesic commented 1 year ago

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 commented 1 year ago

Closed accidentally, re-opened

dummdidumm commented 1 year ago

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