Stylis plugin/middleware for running stylelint
Last updated 2 years ago by exogen .
MIT · Original npm · Tarball · package.json
$ cnpm install stylis-plugin-stylelint 
SYNC missed versions from official npm registry.


Run stylelint as a Stylis plugin. The plugin runs against the CSS content during the -1 stage.


import stylis from 'stylis'
import stylelintPlugin from 'stylis-plugin-stylelint'

stylis.use(stylelintPlugin(/* options */))



Whether to throw an error from the plugin if stylelint finds any errors.

Default: false


Whether to strip indentation from the CSS string before linting. Uses the strip-indent module.

Default: true


The stylelint formatter to use.

Default: 'string'


A custom function to add options to the object passed to stylelint. The result will be merged with (and will overwrite) existing options set by this plugin.

The function is called with a meta object with values from stylis:

{ selectors, parent, line, column, length }

Default: undefined


If failOnError is false but there is an error, this function will be called with the results. You can use this to extract the errors that occurred and report them in a nicer way without throwing.

Default: undefined

Current Tags

  • 0.4.0                                ...           latest (2 years ago)

4 Versions

  • 0.4.0                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (3)
Dev Dependencies (14)

Copyright 2014 - 2016 © |