npmvue.js95% confidence\u2191 62

How to solve "semi-colon expected" warnings (css-semicolonexpected)

Full error message
I'm trying to use Tailwindcss @apply directive in a <style> tag of a Nuxt.js Vue file. Everything works fine, but I keep getting some annoying red squiggly lines. Please, guys, I need help... Thank you!

Below is a screenshot and a snippet:



<style scoped>

.title {
  @apply text-orient font-light block text-5xl pt-2;
}

.message {
  @apply font-light pb-4 text-orient text-2xl text-blue-bayoux
}
</style>

There is no built-in way to solve this within VS Code. The recommended way to solve this is by making use of the Stylelint extension to handle your CSS linting (& SCSS and/or Less, etc.). It's very powerful and likely will improve your stylesheets beyond removing these errors for you. You need to add the styleint dependencies to your project. Run: npm install --save-dev stylelint stylelint-config-standard yarn add -D stylelint stylelint-config-standard Create a stylelint.config.js in the root of your project. (same location where your package.json is stored) Place this snippet into it: module.exports = { extends: ["stylelint-config-standard"], rules: { "at-rule-no-unknown": [ true, { ignoreAtRules: [ "tailwind", "apply", "variants", "responsive", "screen", ], }, ], "declaration-block-trailing-semicolon": null, "no-descending-specificity": null, }, }; Install these extensions to your VS Code setup: Stylelint Tailwind CSS IntelliSense Last but not least, adjust your local or global VS Code settings.json file to include: "css.validate": false, "less.validate": false, "scss.validate": false, This way you will have the native linting "disabled", but are still ensuring it is linted using the Tailwind IntelliSense plugin.

API access

Get this solution programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/error/c5db6cd67de5e26de0ebf0c99b0e148a01e2886d51504d54a4ffb101b1dfe56e
hash \u00b7 c5db6cd67de5e26de0ebf0c99b0e148a01e2886d51504d54a4ffb101b1dfe56e
How to solve &quot;semi-colon expected&quot; warnings (css-s… — DepScope fix | DepScope