mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 18:41:05 -05:00
Merge pull request #546 from epage/thead
fix(config): Ignore thead for jsx/tsx
This commit is contained in:
commit
89a95f1b0a
1 changed files with 28 additions and 0 deletions
|
@ -193,6 +193,34 @@ impl TypeEngineConfig {
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
patterns
|
||||||
|
.entry("js".into())
|
||||||
|
.or_insert_with(|| GlobEngineConfig {
|
||||||
|
extend_glob: Vec::new(),
|
||||||
|
engine: EngineConfig {
|
||||||
|
dict: Some(DictConfig {
|
||||||
|
extend_identifiers: maplit::hashmap! {
|
||||||
|
"thead".into() => "thead".into(),
|
||||||
|
},
|
||||||
|
..Default::default()
|
||||||
|
}),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
|
});
|
||||||
|
patterns
|
||||||
|
.entry("ts".into())
|
||||||
|
.or_insert_with(|| GlobEngineConfig {
|
||||||
|
extend_glob: Vec::new(),
|
||||||
|
engine: EngineConfig {
|
||||||
|
dict: Some(DictConfig {
|
||||||
|
extend_identifiers: maplit::hashmap! {
|
||||||
|
"thead".into() => "thead".into(),
|
||||||
|
},
|
||||||
|
..Default::default()
|
||||||
|
}),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
|
});
|
||||||
patterns
|
patterns
|
||||||
.entry("html".into())
|
.entry("html".into())
|
||||||
.or_insert_with(|| GlobEngineConfig {
|
.or_insert_with(|| GlobEngineConfig {
|
||||||
|
|
Loading…
Reference in a new issue