一覧へ戻る
tk-o/rollup-plugin-sass-lint(新しいタブで開きます)
主要言語: JavaScript
- star 数
- 4
- watcher 数
- 0
- fork 数
- 0
- issue 数
- 1
- 最終更新
- 2017/03/14
主要言語: JavaScript
This plugin allows you to use sass-lint in rollup.js project.
To install use:
yarn add rollup-plugin-sass-lint --dev
Then use it in your rollup.config.js file as a plugin:
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), ], };
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.
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)