Skip to content

Releases: textlint/textlint-rule-helper

v2.5.0

18 Aug 10:20
@azu azu
aea6a65

Choose a tag to compare

What's Changed

CI

  • CI: pin GitHub Actions by @azu in #31

Dependency Updates

  • chore(deps): Update to textlint v15 by @azu in #30

Full Changelog: v2.4.0...v2.5.0

v2.4.0

18 Aug 10:16
@azu azu
802e13d

Choose a tag to compare

What's Changed

Maintenance

Dependency Updates

New Contributors

Full Changelog: v2.3.1...v2.4.0

v2.3.1

25 Nov 05:20
@azu azu
f790eda

Choose a tag to compare

What's Changed

Bug Fixes

  • fix: fix isIgnored work by @azu in #23

Full Changelog: v2.3.0...v2.3.1

v2.3.0

28 Jan 04:48
@azu azu
b02853d

Choose a tag to compare

Bug Fixes

v2.2.4

08 Jan 11:34
@azu azu
85c7888

Choose a tag to compare

What's Changed

Refactoring

  • refactor: update structured-source and use @textlint/kernel by @azu in #20

Full Changelog: v2.2.3...v2.2.4

v2.2.3

04 Nov 09:51
@azu azu
c695466

Choose a tag to compare

Bug Fixes

If you met Cannot find module '@textlint/ast-node-types' error, please upgrade textlint-rule-helper. #18

npm update textlint-rule-helper

or

yarn upgrade textlint-rule-helper

v2.2.2

29 Oct 21:21
@azu azu
fd21147

Choose a tag to compare

Bug Fixes

  • deps: add peerDependenciesMeta optional (ecc4111)

v2.2.1

27 Dec 09:25
@azu azu

Choose a tag to compare

Bug Fixes

  • move textlint type packages to peerDependencies (bac5be7)

v2.2.0

16 May 06:27
@azu azu

Choose a tag to compare

Features

  • helper: add isPlainStrNode(node): boolean #17 #16

isPlainStrNode() return true if the node is Str node and fill following conditions:

  • the node is Str node
  • the node is under the Paragraph node
  • the node is not under the BlockQuote

This function is useful for the common use case.
If you want to lint Str node, but you do not want to lint styled node, this function is useful.
The styled node is Link, Strong, BlockQuote, Header, and it may be written by other people.
For example, you have added a link to your document, the link's title is written by other people.

Opposite of it, The plain Str node is just under the Paragraph node, and it was written by you.

Examples

Return true

str str str
- list text

Return false

# Header
![alt text](https://example.com)
[link title](https://example.com)
> BlockQuote text
**Strong text**
[linkReference][]
[^footnote text]

For more details, see https://github.com/textlint/textlint-rule-helper#rulehelperisplainstrnodenode-boolean

2.1.1

03 Jan 06:22
@azu azu

Choose a tag to compare

Bug Fixes

  • wrap: fix arguments order (f1219db)