{"id":20581,"library":"stylelint-config-prettier-scss","title":"stylelint-config-prettier-scss","description":"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.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/prettier/stylelint-config-prettier-scss","tags":["javascript","stylelint","prettier","config","lint","css"],"install":[{"cmd":"npm install stylelint-config-prettier-scss","lang":"bash","label":"npm"},{"cmd":"yarn add stylelint-config-prettier-scss","lang":"bash","label":"yarn"},{"cmd":"pnpm add stylelint-config-prettier-scss","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; required for the configuration to function.","package":"stylelint","optional":false}],"imports":[{"note":"This is a stylelint config, not a JavaScript module; use in .stylelintrc or stylelint.config.js via extends array.","wrong":"require('stylelint-config-prettier-scss')","symbol":"config","correct":"extends: ['stylelint-config-prettier-scss']"},{"note":"The CLI command is stylelint-config-prettier-scss-check, not the package name.","wrong":"npx stylelint-config-prettier-scss","symbol":"CLI helper","correct":"npx stylelint-config-prettier-scss-check"},{"note":"Config should be in extends, not plugins.","wrong":"module.exports = { plugins: ['stylelint-config-prettier-scss'] }","symbol":"stylelint config","correct":"module.exports = { extends: ['stylelint-config-prettier-scss'] }"}],"quickstart":{"code":"// .stylelintrc.json\n{\n  \"extends\": [\n    \"stylelint-config-standard\",\n    \"stylelint-config-standard-scss\",\n    \"stylelint-config-prettier-scss\"\n  ]\n}","lang":"javascript","description":"Example .stylelintrc.json that applies standard CSS and SCSS configs, then overrides with Prettier-compatible SCSS rules."},"warnings":[{"fix":"If you need to disable stylistic rules beyond SCSS, install and extend stylelint-config-prettier directly in addition to stylelint-config-prettier-scss.","message":"Drops use of stylelint-config-prettier to align with Stylelint v15 deprecation of stylistic rules","severity":"breaking","affected_versions":"1.0.0"},{"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.","message":"stylelint-config-prettier itself now only disables rules from stylelint-config-standard, not stylistic rules (removed in v15)","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Always put 'stylelint-config-prettier-scss' at the end of the extends array.","message":"Must be placed last in the extends array to properly override other configs","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Also extend 'stylelint-config-prettier' if you need to disable CSS stylistic rules.","message":"Only disables SCSS rules; CSS-only rules from other configs may still conflict","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Ensure you have the latest version (1.0.0) and that stylelint-config-prettier-scss is last in extends.","cause":"stylelint-config-prettier-scss disables SCSS rules that may conflict with Prettier; some earlier version might not have covered this rule.","error":"Configuration for rule \"scss/at-rule-no-unknown\" is invalid"},{"fix":"Run 'npm install --save-dev stylelint-config-prettier-scss' and check that it is in node_modules.","cause":"The package is not installed or is not resolvable by stylelint.","error":"Cannot find module 'stylelint-config-prettier-scss'"},{"fix":"Run 'npx stylelint-config-prettier-scss-check' instead.","cause":"User tried to run 'npx stylelint-config-prettier-scss' instead of the correct CLI tool.","error":"Unknown CLI command: stylelint-config-prettier-scss"},{"fix":"Use 'extends: [\"stylelint-config-prettier-scss\"]' (array) instead of 'extends: \"stylelint-config-prettier-scss\"'.","cause":"Stylelint config file had extends as a string instead of an array.","error":"Invalid option for \"extends\". Expected an array of strings."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}