docs(installation): update regex to match @nuxt/eslint rules (#1572)

This commit is contained in:
Neil Richter
2024-03-27 13:55:23 +01:00
committed by GitHub
parent 0b799e4300
commit dd8a122933

View File

@@ -194,7 +194,7 @@ To enable these two features, you can add the following to your `.vscode/setting
{ {
"tailwindCSS.experimental.classRegex": [ "tailwindCSS.experimental.classRegex": [
["ui:\\s*{([^)]*)\\s*}", "[\"'`]([^\"'`]*).*?[\"'`]"], ["ui:\\s*{([^)]*)\\s*}", "[\"'`]([^\"'`]*).*?[\"'`]"],
["/\\*ui\\*/\\s*{([^;]*)}", ":\\s*[\"'`]([^\"'`]*).*?[\"'`]"] ["/\\*\\s?ui\\s?\\*/\\s*{([^;]*)}", ":\\s*[\"'`]([^\"'`]*).*?[\"'`]"]
] ]
} }
``` ```
@@ -207,7 +207,7 @@ An example SFC using IntelliSense (note the `/*ui*/` prefix, also works with `re
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
const ui = /*ui*/ { const ui = /* ui */ {
background: 'bg-white dark:bg-slate-900' background: 'bg-white dark:bg-slate-900'
} }
</script> </script>