Sass-lint plugin for Webpack 4+
yarn add -D sass-lint sass-lint-webpacknpm install -D sass-lint sass-lint-webpackAdd following lines to your Webpack config file (eg. webpack.config.js).
const SassLintPlugin = require('sass-lint-webpack')
module.export = {
// ...
plugins: [
// ...
new SassLintPlugin(),
],
}Normally the .sass-lint.yml file is all you need. It is also possible to manually pass options to sass-lint.
- files - a glob pattern or single file path as a lint target
- options - user specified rules/options passed in
- configPath - path to a config file
Copyright (c) 2022 Jianqiu Xiao swordray@gmail.com under the MIT License.