-
Notifications
You must be signed in to change notification settings - Fork 7
Description
The docs mention that an array of tags can be specified with @styled/typescript-styled-plugin.
typescript-styled-plugin/README.md
Lines 122 to 127 in 4b3e454
| "plugins": [ | |
| { | |
| "name": "@styled/typescript-styled-plugin", | |
| "tags": ["styled", "css", "sty"] | |
| } | |
| ] |
However, I cannot get this to work. Adding, for example, "foo" to that array, I don't get syntax highlighting on foo like how I do with css.
"plugins": [
{
"name": "@styled/typescript-styled-plugin",
"tags": ["styled", "css", "foo"] // does not work
}
](I have tried installing @styled/typescript-styled-plugin and typescript in my deps, to no effect)
I also cannot get other options to work, for example validate.
"plugins": [
{
"name": "@styled/typescript-styled-plugin",
"validate": false // does not work
}
]I was able to get validate to work when using typescript-styled-plugin instead of @styled/typescript-styled-plugin, but tags does not work.
"plugins": [
{
"name": "typescript-styled-plugin",
"validate": false, // works
"tags": ["styled", "css", "foo"] // does not work
}
]The README switches back and forth between the two plugin names so I'm not sure which one is right.
typescript-styled-plugin/README.md
Line 124 in 4b3e454
| "name": "@styled/typescript-styled-plugin", |
typescript-styled-plugin/README.md
Line 165 in 4b3e454
| "name": "typescript-styled-plugin", |
Environment info: pnpm workspaces, vscode, windows 11