fix(config): Ignore thead for jsx/tsx

Fixes #545
This commit is contained in:
Ed Page 2022-08-29 16:00:08 -05:00
parent 4c2445fb57
commit dc49c98c3c

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 {