textlint-rule / textlint-rule-no-unmatched-pair

textlint rule that check unmatched pairs like "(" and "]"
MIT License
7 stars 3 forks source link

Make "end" only case opt-in #1

Open azu opened 5 years ago

azu commented 5 years ago

Currently, report error for only start case like ( We want to report error for only end case like ).

NG

This is bad (.
This is bad (a].
This is bad ).

Current OK, but it should be error

This is bad ).
            ^ we want to check it

However, some user want to use 1). So, we need to add new option to allow it as opt-in. Or, it is just allow to use <number>)

https://github.com/textlint-rule/textlint-rule-no-unmatched-pair/blob/95ef2dfe8e61487d37433deeb5de7731add9e11d/test/textlint-rule-no-unmatched-pair-test.js#L30-L36

azu commented 5 years ago

Maybe, It will be optional.

option name is just as well

{
  "checkEndBracket": true
}
1) item 1
2) item 2
3) item 3

I've received example case https://twitter.com/yasu_ja_jp/status/110258063909256397