Skip to content

Commit

Permalink
Merge pull request #546 from epage/thead
Browse files Browse the repository at this point in the history
fix(config): Ignore thead for jsx/tsx
  • Loading branch information
epage committed Aug 29, 2022
2 parents 4c2445f + dc49c98 commit 89a95f1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 89a95f1

Please sign in to comment.