You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 -->
Settings
Via .textlintrc(Recommended)
{
"filters": {
"comments": true
}
}
Options
enablingComment:
default: "textlint-enable"
enable comment directive
e.g.) <!-- textlint-enable -->
disablingComment:
default: "textlint-disable"
disable comment directive
e.g.) <!-- 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"}}}