Merge pull request #546 from epage/thead

fix(config): Ignore thead for jsx/tsx
This commit is contained in:
Ed Page 2022-08-29 16:10:57 -05:00 committed by GitHub
commit 89a95f1b0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,6 +193,34 @@ impl TypeEngineConfig {
..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
.entry("html".into())
.or_insert_with(|| GlobEngineConfig {