Socket
Socket
Sign inDemoInstall

stylelint-processor-arbitrary-tags

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stylelint-processor-arbitrary-tags

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


Version published
Weekly downloads
1.1K
increased by57.65%
Maintainers
1
Install size
31.5 kB
Created
Weekly downloads
 

Changelog

Source

0.1.0

  • Start this log.

Readme

Source

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]*?'

Keywords

FAQs

Last updated on 21 Sep 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc