https://github.com/swordray/sass-lint-webpack
Sass-lint plugin for Webpack 4+
https://github.com/swordray/sass-lint-webpack
sass sass-lint webpack wepack4
Last synced: 9 days ago
JSON representation
Sass-lint plugin for Webpack 4+
- Host: GitHub
- URL: https://github.com/swordray/sass-lint-webpack
- Owner: swordray
- License: mit
- Created: 2018-07-04T15:33:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T22:54:24.000Z (almost 2 years ago)
- Last Synced: 2024-12-31T13:04:42.915Z (4 months ago)
- Topics: sass, sass-lint, webpack, wepack4
- Language: JavaScript
- Homepage:
- Size: 173 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Sass-lint Webpack Plugin
Sass-lint plugin for Webpack 4+
## Requirements
* [sass-lint](https://github.com/sasstools/sass-lint)
* [Webpack](http://webpack.js.org/) 4+## Installation
### Yarn
```bash
yarn add -D sass-lint sass-lint-webpack
```### NPM
```bash
npm install -D sass-lint sass-lint-webpack
```## Usage
Add following lines to your Webpack config file (eg. `webpack.config.js`).
```js
const SassLintPlugin = require('sass-lint-webpack')module.export = {
// ...
plugins: [
// ...
new SassLintPlugin(),
],
}
```### Options
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](https://github.com/sasstools/sass-lint#options) - user specified rules/options passed in
* [configPath](https://github.com/sasstools/sass-lint/blob/master/docs/options/config-file.md) - path to a config file## Sponsors
* [BaiLu ShuYuan](https://bailushuyuan.org)
## License
Copyright (c) 2022 Jianqiu Xiao under the MIT License.