A Stylelint plugin (v4.1.3) that displays Sass render errors and deprecations as lint errors. It integrates the Sass compiler (Dart Sass) into Stylelint, treating deprecations as errors to encourage code modernization. Unlike other Sass linting tools, it operates per file and supports modern Sass APIs (`compile`, `compileString`) with options for sync/async rendering, custom Sass options, and undefined function checking. Requires Node >=18.12, Stylelint >=14, and Dart Sass (peer dependency). Released actively with monthly or quarterly updates.
npm install stylelint-sass-render-errorsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures the plugin to catch Sass deprecations and undefined functions, then lint an SCSS file.
Use import syntax or update Node.js to >=18.12 and ensure your project uses ESM.
Upgrade Node to >=18.12 and Dart Sass to >=1.75.
Ensure your Sass options are compatible with the new API; see Sass docs.
Use the new API; no action needed if using the plugin as-is.
Switch to Sass modules (@use/@forward) for better isolation.
Set checkUndefinedFunctions: true in plugin options.
Use ES module import syntax or convert your project to ESM.
Use `import stylelintSassRenderErrors from 'stylelint-sass-render-errors'` (default import) or use plugin config as string.
Add the plugin to the `plugins` array in .stylelintrc: `"plugins": ["stylelint-sass-render-errors"]`.