Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@mapbox/stylelint-processor-arbitrary-tags
Advanced tools
A stylelint processor that allows you to lint CSS within arbitrary tags
Weekly downloads
Readme
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.
npm install @mapbox/stylelint-processor-arbitrary-tags
Type: string
that's RegExp-ready
Default:
'[^`\'"]<style[\\s\\S]*?>'
Type: string
that's RegExp-ready
Default:
'</\\s*?style>'
Type: string
that's RegExp-ready
Default:
'[\\s\\S]*?'
Type: array<RegExp|string>
that's an array of regular expressions or strings that describe files that you want to be processed with this module.
Matches will be processed; files that do not match will not be.
Given the following value, only .html
files will be processed:
fileFilterRegex: [/\.html$/]
You can also use regular expression strings instead of regular expression literals. This is necessary if you are using yaml-based configuration and can't use regular expression literals. Yaml variant of example above:
- fileFilterRegex:
- '\.html$'
This is useful when you want to create different settings for HTML and markdown, for instance.
When empty ([]
), every file will pass through the filter and be processed by this module.
Default:
[]
Do not use this processor with the no-empty-source
rule. If you do, you will have warnings whenever a file does not contain any matches for your regular expression.
FAQs
A stylelint processor that allows you to lint CSS within arbitrary tags
The npm package @mapbox/stylelint-processor-arbitrary-tags receives a total of 7,638 weekly downloads. As such, @mapbox/stylelint-processor-arbitrary-tags popularity was classified as popular.
We found that @mapbox/stylelint-processor-arbitrary-tags demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 open source maintainers collaborating on the project.
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.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.