Open azu opened 5 years ago
Currently, report error for only start case like ( We want to report error for only end case like ).
start
(
end
)
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>)
1)
<number>)
https://github.com/textlint-rule/textlint-rule-no-unmatched-pair/blob/95ef2dfe8e61487d37433deeb5de7731add9e11d/test/textlint-rule-no-unmatched-pair-test.js#L30-L36
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
Currently, report error for only
start
case like(
We want to report error for onlyend
case like)
.NG
Current OK, but it should be error
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