#Prettier + Stylelint

11 messages · Page 1 of 1 (latest)

gritty isle
#

I want to use Stylelint for CSS and Prettier for everything else, but .astro files have markup, styles, and scripts all in the same file. Is it possible to disable Prettier just for the <style> part of .astro files?

gritty isle
#

<@&882699029706862602>

grizzled loom
#

Hi @gritty isle sorry for the delay friend

#

I dont think it is possible unfortunately, sorry to say,

gritty isle
#

No worries

#

Would it be possible to implement it in the Prettier plugin? I am not familiar with how it works so I am not sure

gritty isle
#

@grizzled loom

grizzled loom
#

prettier for css, I honestly don't know the anstonthis question, I'll ask @cinder apex if he may know of a way

pallid peak
#

We'd have to add a setting for this

#

It'd be possible for sure, but Prettier kinda likes taking control of the entire file so not sure how they would interact

gritty isle
#

Cool! Thanks!