$ cnpm install scsslint-loader
Webpack loader for scss-lint
$ npm install scsslint-loader
Within your webpack configuration, you'll need to add the scsslint-loader to the list of modules:
module.exports = {
// ...
module: {
preloaders: [
{
test: /\.scss$/,
loader: "scsslint",
exclude: /node_modules/
}
]
}
// ...
}
Please see scss-lint configuration for configuration options.
scss-lint
loads configuration in the following order of precedence:
--config
flag.scss-lint.yml
in the current working directory,
if it exists.scss-lint.yml
in the user's home directory,
if it existsCopyright 2014 - 2016 © taobao.org |