stylelint-config-standard-vue is a shareable Stylelint configuration tailored for Vue.js projects. Its current stable version is 1.0.0, released in January 2022. As a configuration package, its release cadence is typically tied to updates in Stylelint and its foundational configurations like `stylelint-config-standard` and `stylelint-config-recommended-vue`. This config stands out by combining general CSS best practices with specific adjustments for Vue Single File Components (SFCs), including support for SCSS stylesheets within Vue components. It ensures consistent styling by extending a robust set of rules and requires Stylelint v14 or newer for compatibility, as older versions do not handle non-CSS syntaxes like HTML/Vue natively.
npm install stylelint-config-standard-vueVerified import paths — ran on the pinned version, not inferred.
Installs the necessary packages, configures Stylelint to use the standard Vue rules, and sets up VS Code for proper linting of `.vue` files.
Upgrade Stylelint to version 14 or newer (`npm install stylelint@latest`).
Ensure `stylelint-config-standard-vue` or `stylelint-config-vue/scss` is the final entry in your `extends` array if other configs also set `customSyntax`.
Add `"vue"` to the `stylelint.validate` array in your `.vscode/settings.json` file.
Order your `extends` array like this: `["stylelint-config-standard-scss", "stylelint-config-standard-vue/scss"]`.
Install `postcss-html` as a dev dependency: `npm install --save-dev postcss-html`.
Ensure `stylelint` is v14+, `postcss-html` is installed, and `stylelint-config-standard-vue` is the last item in your `extends` array if other configs use `customSyntax`.
Add `"vue"` to the `stylelint.validate` setting in your `.vscode/settings.json` file. You may also want to disable built-in CSS/SCSS validation to avoid conflicts.