Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tk-o/rollup-plugin-sass-lint
https://github.com/tk-o/rollup-plugin-sass-lint
rollup rollup-plugin sass-lint
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tk-o/rollup-plugin-sass-lint
- Owner: tk-o
- License: mit
- Created: 2017-03-14T08:41:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-14T14:04:52.000Z (over 7 years ago)
- Last Synced: 2024-05-18T20:41:32.083Z (6 months ago)
- Topics: rollup, rollup-plugin, sass-lint
- Language: JavaScript
- Size: 18.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - sass-lint - Lint SCSS files (Plugins / Code Quality)
README
# rollup-plugin-sass-lint
This plugin allows you to use [`sass-lint`](https://github.com/sasstools/sass-lint) in [`rollup.js`](https://github.com/rollup/rollup) project.
### Installation
To install use:
```
yarn add rollup-plugin-sass-lint --dev
```### Usage
Then use it in your `rollup.config.js` file as a plugin:```javascript
import sassLint from 'rollup-plugin-sass-lint';const sassLintOptions = {}; // please check # Options section below
export default {
entry: 'src/index.js',
format: 'iife',
plugins: [
sassLint(sassLintOptions),
],
};
```### Options
This plugin can take the same set of options like `sass-lint`. You can either provide `.sass-lint.yml` file or simply pass the options in `rollup.config.js` file while calling `sassLint` function.##### Additional options
- `failOnError` (default: _false_) - if set to _ture_ and some linting errors occured it exits the process with an error (useful when building assets for production environment)