textlint-rule / textlint-rule-prh

textlint rule for prh.
MIT License
82 stars 6 forks source link

Add ignoreSyntax option #34

Closed Leko closed 6 years ago

Leko commented 6 years ago

Fixed #33

Changes

Breaking changes

none

Question

I can't decide whether to validate syntax type or not. like,

ignoreSyntax.forEach(syntax => {
  if (typeof Syntax[syntax] === 'undefined') {
    throw new Error(`Invalid syntax type: ${syntax}`)
  }
})

How about you?