Registry / testing / eslint-plugin-vue-scoped-css

eslint-plugin-vue-scoped-css

JSON →
library3.0.0jsnpmunverified

ESLint plugin providing linting rules for scoped CSS in Vue.js components. Current stable version is 3.0.0, released in 2025, with active maintenance and regular releases (major every ~2 years). It supports CSS Level 4 selectors, SCSS (via postcss-scss), and Stylus (via postcss-styl), parsing <style>, <template>, and <script> blocks. Key differentiators: dedicated scoped CSS rules (e.g., no-unused-selector, no-deprecated-deep-combinator), built-in TypeScript types, and flat config support (ESLint >=9.38.0). Unlike generic CSS linting plugins, it understands Vue's scoped attributes and deep selectors.

testingweb-framework
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ESM-only since v3 – CommonJS require() is not supported.

import plugin from 'eslint-plugin-vue-scoped-css'

Use bracket notation for named configs; flat configs under configs key.

import plugin from 'eslint-plugin-vue-scoped-css'; plugin.configs['recommended']

Rule names are prefixed with 'vue-scoped-css/'.

import plugin from 'eslint-plugin-vue-scoped-css'; plugin.rules['vue-scoped-css/no-unused-selector']

Flat config example with recommended preset and custom rules.

// eslint.config.js import plugin from 'eslint-plugin-vue-scoped-css'; export default [ ...plugin.configs['recommended'], { rules: { 'vue-scoped-css/no-unused-selector': 'error', 'vue-scoped-css/no-deprecated-deep-combinator': 'warn' } } ];
Debug
Known footguns
breakingv3.0.0 drops support for legacy eslintrc configs and Node.js <20.19.
deprecatedFlat config aliases prefixed with 'flat/' (e.g., 'flat/base') are deprecated and will be removed in a future major version.
gotchaMissing optional peer deps (postcss-scss, postcss-styl) cause runtime errors when using SCSS or Stylus in components.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources