mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 09:35:11 +02:00
Merge pull request #1186 from friday/patch-1
docs: add linkable header to example configurations
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user