Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
textlint-filter-rule-comments
Advanced tools
textlint rule that ignore texts using comments directive.
textlint rule that ignore error using comments directive.
Install with npm:
npm install textlint-filter-rule-comments
Dependencies:
Example case in Markdown.
This is error text.
<!-- textlint-disable -->
This is ignored text by rule.
Disables all rules between comments
<!-- textlint-enable -->
This is error text.
Ignore specified rules:
<!-- textlint-disable ruleA,ruleB -->
Ignore RuleA and RuleB
<!-- textlint-enable ruleA -->
Still ignore RuleB
Limitation(markdown):
Require new-line around of <!-- textlint-disable -->
in Markdown.
This limitation com from remark.
NG:
<!-- textlint-disable -->
this is wrong
<!-- textlint-enable -->
OK:
<!-- textlint-disable -->
this is ok
<!-- textlint-enable -->
Via .textlintrc
(Recommended)
{
"filters": {
"comments": true
}
}
enablingComment
:
"textlint-enable"
<!-- textlint-enable -->
disablingComment
:
"textlint-disable"
<!-- textlint-disable -->
{
"filters": {
"comments": {
// enable comment directive
// if comment has the value, then enable textlint rule
"enablingComment": "textlint-enable",
// disable comment directive
// if comment has the value, then disable textlint rule
"disablingComment": "textlint-disable"
}
}
}
See Releases page.
Install devDependencies and Run npm test
:
npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT © azu
FAQs
textlint rule that ignore texts using comments directive.
We found that textlint-filter-rule-comments demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.