MithrilJS / mithril-codemods

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

Expand view function checking #13

Closed tivac closed 8 years ago

tivac commented 8 years ago

Would be nice to be able to identify functions like this.

export function view(ctrl, options) {
    ...
}

Since not only is it named view but it takes the exact two params we'd expect. Taking just ctrl as the first param is probably enough.

http://astexplorer.net/#/gjQK00HsXw