MithrilJS / mithril-codemods

jscodeshift-powered mithril@0.2.x to mithril@1.x transformations
MIT License
19 stars 4 forks source link

Transform empty selectors into divs #26

Closed tivac closed 7 years ago

tivac commented 7 years ago

Original Source

m("")

Expected Output

m("div")

The original form is arguably a bug, and there's no reason this tool couldn't trivially update that to not be a bug.

tivac commented 7 years ago

Just kidding, mithril@1.0.0 still supports m("") so leaving it in there to avoid injecting too many opinions into the tool!