Skip to content

Releases: textlint-rule/textlint-rule-prh

v6.0.0

04 Feb 00:50
@azu azu
b0e1d88
Compare
Choose a tag to compare

What's Changed

Breaking Changes

  • BREAKING CHANGE: require Node.js 18+ by @azu in #104

This release includes following changes:

  • use export default instead of module.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

18 Dec 01:45
@azu azu
Compare
Choose a tag to compare

Bug Fixes

  • deps: update dependency prh to ^5.4.4 (c6b62e3)
  • typo: textlinrc -> textlintrc (#67) (80753d7)

Features

  • options: support CodeBlock's comment (#69) (ee66921), closes #38

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

15 Jun 05:57
@azu azu
Compare
Choose a tag to compare

Bug Fixes

  • deps: update dependency textlint-rule-helper to ^2.0.1 (39c9967)
  • deps: update dependency textlint-rule-helper to ^2.1.1 (c897f5f)
  • deps: update dependency untildify to ^3.0.3 (f2b0637)

5.2.0

23 Jul 13:12
@azu azu
Compare
Choose a tag to compare

Features

5.1.0

21 Jul 14:14
@azu azu
Compare
Choose a tag to compare

Features

Support check* option. #35 #33

  • checkLink(optional) : Check Link node type (default: false)
  • checkBlockQuote(optional) : Check BlockQuote node type (default: false)
  • checkEmphasis(optional) : Check Emphasis node type (default: false)
  • checkHeader(optional) : Check Header node type (default: true)

5.0.1

27 Sep 22:50
@azu azu
Compare
Choose a tag to compare

Bug Fixes

  • prh: Add RegExp.prototype.flags workaround for Node.js v4 (463f9c1)

This bug fix for

TypeError: Cannot read property 'split' of undefined

5.0.0

27 Sep 14:49
@azu azu
Compare
Choose a tag to compare

Bug Fixes

4.0.1

21 May 06:17
@azu azu
Compare
Choose a tag to compare

Bug Fixes

4.0.0

21 May 05:43
@azu azu
Compare
Choose a tag to compare

Bug Fixes

BREAKING CHANGES

3.1.3

13 Jan 01:01
@azu azu
Compare
Choose a tag to compare

Bug Fixes

  • fix to work some rules use ?= RegExp (#12) (4838d00)

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