Registry / testing / stylelint-config-prettier-scss

stylelint-config-prettier-scss

JSON →
library1.0.0jsnpmunverified

Shareable stylelint config that disables all SCSS rules that conflict with Prettier, extending stylelint-config-prettier. Forked from stylelint-config-prettier to specifically handle SCSS rules. Current version 1.0.0 requires stylelint >=15.0.0 and Node 14, 16, or >=18. Key differentiator: allows using Prettier alongside stylelint without clashes, with a built-in CLI helper to verify configuration. Actively maintained alongside Prettier ecosystem.

npm install stylelint-config-prettier-scss
INSTALL
IMPORT
SIG · STYLELINT-CONFIG-P
S
stylelint-config-prettier-scss
testingjavascriptv1.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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.

config
extends: ['stylelint-config-prettier-scss']
require('stylelint-config-prettier-scss')
This is a stylelint config, not a JavaScript module; use in .stylelintrc or stylelint.config.js via extends array.
CLI helper
npx stylelint-config-prettier-scss-check
npx stylelint-config-prettier-scss
The CLI command is stylelint-config-prettier-scss-check, not the package name.
stylelint config
module.exports = { extends: ['stylelint-config-prettier-scss'] }
module.exports = { plugins: ['stylelint-config-prettier-scss'] }
Config should be in extends, not plugins.

Example .stylelintrc.json that applies standard CSS and SCSS configs, then overrides with Prettier-compatible SCSS rules.

// .stylelintrc.json { "extends": [ "stylelint-config-standard", "stylelint-config-standard-scss", "stylelint-config-prettier-scss" ] }
stylelint-config-prettier-scss --version
Debug
Known issues
breakingDrops use of stylelint-config-prettier to align with Stylelint v15 deprecation of stylistic rules
fix
If you need to disable stylistic rules beyond SCSS, install and extend stylelint-config-prettier directly in addition to stylelint-config-prettier-scss.
affects: 1.0.0
deprecatedstylelint-config-prettier itself now only disables rules from stylelint-config-standard, not stylistic rules (removed in v15)
fix
Use stylelint-config-prettier only if you need to disable non-SCSS rules from stylelint-config-standard; for SCSS-specific, use stylelint-config-prettier-scss.
affects: >=1.0.0
gotchaMust be placed last in the extends array to properly override other configs
fix
Always put 'stylelint-config-prettier-scss' at the end of the extends array.
affects: >=0.0.1
gotchaOnly disables SCSS rules; CSS-only rules from other configs may still conflict
fix
Also extend 'stylelint-config-prettier' if you need to disable CSS stylistic rules.
affects: >=0.0.1
Errors
Common errors & fixes
Configuration for rule "scss/at-rule-no-unknown" is invalid
stylelint-config-prettier-scss disables SCSS rules that may conflict with Prettier; some earlier version might not have covered this rule.
fix
Ensure you have the latest version (1.0.0) and that stylelint-config-prettier-scss is last in extends.
Cannot find module 'stylelint-config-prettier-scss'
The package is not installed or is not resolvable by stylelint.
fix
Run 'npm install --save-dev stylelint-config-prettier-scss' and check that it is in node_modules.
Unknown CLI command: stylelint-config-prettier-scss
User tried to run 'npx stylelint-config-prettier-scss' instead of the correct CLI tool.
fix
Run 'npx stylelint-config-prettier-scss-check' instead.
Invalid option for "extends". Expected an array of strings.
Stylelint config file had extends as a string instead of an array.
fix
Use 'extends: ["stylelint-config-prettier-scss"]' (array) instead of 'extends: "stylelint-config-prettier-scss"'.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
stylelintrequiredPeer dependency; required for the configuration to function.
Agent activity
5 hits · last 30 days
node
4
Resources
stylelint-config-prettier-scss — npm install stylelint-config-prettier-scss · libregistry