textlint-rule / textlint-rule-spellchecker

textlint rule to check spellings with native spellchecker
8 stars 2 forks source link

skipNodeTypes with "Code" not working for inline code blocks #57

Closed trevordmiller closed 1 year ago

trevordmiller commented 5 years ago

Example textlint config:

{
  "rules": {
    "spellchecker": {
      "skipNodeTypes": ["Code"]
    }
  }
}

Example markdown:

### Here are some example files

- `.bash_profile` is used by Bash for my shell configuration.
- `.gitconfig` is used by Git for my version control configuration.
- `.vimrc` is used by Vim for my editor configuration.
...

Running textlint on this lead to errors like:

error  gitconfig ->                                             spellchecker
error  vimrc -> vimdc, vimcc, vimlc, vimmc, vimvc, vimxc, vimc  spellchecker

The docs that are linked to show Code as the option for this: https://github.com/textlint/textlint/blob/master/docs/txtnode.md#type

image
trevordmiller commented 5 years ago

Another example:

Example markdown:

Here is some text with `some example code with spellllllling issues` that should ignore the spelling issue in the back ticks

Running textlint on this leads to this error:

spellchecker: spellllllling ->