Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

stylelint-processor-arbitrary-tags

mapbox804MITdeprecated0.1.0

This module is now under the @mapbox namespace: install @mapbox/stylelint-processor-arbitrary-tags instead

A stylelint processor that allows you to lint CSS within arbitrary tags

stylelint, stylelint-processor

readme

stylelint-processor-arbitrary-tags

Build Status

A stylelint processor that allows you to lint CSS within arbitrary tags.

The module uses a regular expression to identify code within the specified tags, then passes the code on to stylelint.

By default, it looks for code within <style> tags (see default options below). But you can change the regular expression to find code within other tags, like {% highlight css %}...{% endhighlight %} for Jekyll templates, or /* start css */.../* end css */ within a JS file, or who knows what else.

Options

startTag

Type: string that's RegExp-ready

Default: '[^'"]<style[\s\S]*?>`

endTag

Type: string that's RegExp-ready

Default: '</\\s*?style>'

body

Type: string that's RegExp-ready

Default: '[\\s\\S]*?'

changelog

Changelog

0.1.0

  • Start this log.