Releases: textlint-rule/textlint-rule-prh
Releases · textlint-rule/textlint-rule-prh
v6.0.0
What's Changed
Breaking Changes
This release includes following changes:
- use
export default
instead ofmodule.exports
- remove
RegExp.prototype.flags
polyfill
I think it has almost no effect on the user.
Dependency Updates
- chore(deps): lock file maintenance by @renovate in #75
- chore(deps): update dependency husky to v4 by @renovate in #71
- chore(deps): update actions/setup-node action to v2 by @renovate in #79
- chore(deps): update dependency lint-staged to v11 by @renovate in #80
- fix(deps): update dependency textlint-rule-helper to ^2.2.0 by @renovate in #81
- fix(deps): update dependency untildify to v4 by @renovate in #63
- chore(deps): update dependency textlint-scripts to v12 by @renovate in #82
- chore(deps): update dependency lint-staged to v12 by @renovate in #85
- docs(README): Change link to the example configuration by @chocoby in #86
- chore(deps): update actions/checkout action to v3 by @renovate in #88
- chore(deps): update actions/setup-node action to v3 by @renovate in #87
- fix(deps): update dependency textlint-rule-helper to ^2.3.0 by @renovate in #91
- chore(deps): update actions/checkout action to v4 by @renovate in #98
- chore(deps): update actions/setup-node action to v4 by @renovate in #101
New Contributors
Full Changelog: 5.3.0...v6.0.0
5.3.0
Bug Fixes
Features
You can check the code's commebt by checkCodeComment
options.
Example
{
"rules": {
"prh": {
"checkCodeComment": ["js", "javascript"],
"rulePaths" :["./prh.yml"]
}
}
}
Support CodeBlock
's comment //
and /*
.
// $ is jquery
Limitation: It just support JavaScript Code, because I don't found any lang comment parser correctly.
Future Work: #70
5.2.1
5.2.0
5.1.0
Features
Support check*
option. #35 #33
checkLink
(optional) : CheckLink
node type (default:false
)checkBlockQuote
(optional) : CheckBlockQuote
node type (default:false
)checkEmphasis
(optional) : CheckEmphasis
node type (default:false
)checkHeader
(optional) : CheckHeader
node type (default:true
)
5.0.1
5.0.0
4.0.1
4.0.0
Bug Fixes
BREAKING CHANGES
- prh: upgrade prh 3.0 https://github.com/prh/prh/blob/master/CHANGELOG.md#300-2017-05-06
- prh use
/regexp/u
by default. - Always add
u
flag - some pattern is invalid now.
- prh use
3.1.3
Bug Fixes
Some prh rule was broken in textlint-prh
version: 1
rules:
- prh: 「行う」「行なう」は開く。
expected: おこな
pattern: /(おこな|行な?)(?=[わいっうえお])/
specs:
- from: 行わない
to: おこなわない
- from: 行います
to: おこないます
- from: 行うとき
to: おこなうとき
- from: 行えば
to: おこなえば
- from: 行なう
to: おこなう
- from: おこなう
to: おこなう
# チェックされなくてよい部分
- from: 行く
to: 行く
This patch release fix this.
Thanks for report @cu39