0.1.1 • Published 8 years ago
scsslint-loader v0.1.1
scsslint-loader
Webpack loader for scss-lint
Requirements
- Ruby 1.9.3+
- Sass 3.4.15+
- scss-lint 0.48.0+
- Files you wish to lint must be written in SCSS (not Sass) syntax
Install
$ npm install scsslint-loader
Usage
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/
}
]
}
// ...
}
Configuration
Please see scss-lint configuration for configuration options.
scss-lint
loads configuration in the following order of precedence:
- Configuration file specified via the
--config
flag - Configuration from
.scss-lint.yml
in the current working directory, if it exists - Configuration from
.scss-lint.yml
in the user's home directory, if it exists