Skip to content

tk-o/rollup-plugin-sass-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-sass-lint

This plugin allows you to use sass-lint in rollup.js 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:

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)

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published