rollup-plugin-stylelint

1.0.0 • Public • Published

rollup-plugin-stylelint (WIP 🚧)

Verify entry point and all imported files with stylelint

Installation

npm install --save-dev rollup-plugin-stylelint stylelint

Usage

// rollup.config.js
import stylelint from 'rollup-plugin-stylelint';
 
export default {
  entry: './main.ts',
 
  plugins: [
    stylelint({
        //stylelint config
    })
  ]
}

The plugin loads linter options from the .stylelintrc file by default. Passing options to the plugin directly overrides those options.

Options

See more options here stylelint-config.

throwOnError

Type: boolean
Default: false

If true, will throw an error if any errors were found.

throwOnWarning

Type: boolean
Default: false

If true, will throw an error if any warnings were found.

Package Sidebar

Install

npm i rollup-plugin-stylelint

Weekly Downloads

593

Version

1.0.0

License

MIT

Unpacked Size

6.39 kB

Total Files

4

Last publish

Collaborators

  • tanyaisinmybed