mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 07:32:18 -05:00
docs: add linkable header to example configurations
This commit is contained in:
parent
9d89015957
commit
e7ed6e87f8
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ Configuration is read from the following (in precedence order)
|
|||
| type.\<name>.\<field> | \<varied> | \<varied> | \<varied> | See `default.` for child keys. Run with `--type-list` to see available `<name>`s. |
|
||||
| type.\<name>.extend-glob | \- | list of strings | \- | File globs for matching `<name>`. |
|
||||
|
||||
### Example configurations
|
||||
|
||||
Common `extend-ignore-re`:
|
||||
- Line ignore with trailing `# spellchecker:disable-line`: `"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$"`
|
||||
- Line block with `# spellchecker:<on|off>`: `"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on"`
|
||||
|
|
Loading…
Reference in a new issue