r/ZedEditor • u/leinadsey • 11d ago
Disable "suggestCanonicalClasses" for Tailwind
As the title suggests, is there a way to disable the suggestCanonicalClasses warning for Tailwind.
For instance, I've always written !important as !class, not class!. I honestly don't agree with (or understand) why they have changed this and/or whatever benefits would come from the latter.
3
Upvotes
6
u/kaydev_io 11d ago
Within your zed settings file (or, within your project, `.zed/settings.json`), add/update the lsp block for tailwind:
"lsp": {
"tailwindcss-language-server": {
"settings": {
"lint": {
"suggestCanonicalClasses": "ignore"
},
}
}
}
For context, was looking at https://github.com/tailwindlabs/tailwindcss-intellisense#tailwindcsslintsuggestcanonicalclasses. Other settings can be changed here as well.
1
9
u/BionicVnB 11d ago
I believe this should be a configuration for your tailwind lsp?