Webpack 4+ plugin that integrates sass-lint to lint SCSS/SASS files during the build process. Version 1.0.4 is the latest stable release. It delegates all linting to the sass-lint peer dependency and supports custom config files, glob patterns, and sass-lint options. Differentiators: lightweight wrapper specifically for Webpack 4+, not a loader but a Build plugin that runs linting on compilation. Requires Webpack 4+ and sass-lint ~1.12.1.
npm install sass-lint-webpackVerified import paths — ran on the pinned version, not inferred.
Shows how to configure SassLintPlugin in webpack.config.js with optional settings.
npm install -D sass-lint sass-lint-webpack
Use require('sass-lint-webpack') instead of import.Upgrade to Webpack 4+ or use alternative plugins.
Migrate to stylelint with stylelint-scss plugin.
Provide a .sass-lint.yml file or pass options to customize.
npm install -D sass-lint sass-lint-webpack
Use const SassLintPlugin = require('sass-lint-webpack')npm install -D sass-lint