Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
/ mithril-codemods Public archive

jscodeshift-powered mithril@0.2.x to mithril@1.x transformations

License

Notifications You must be signed in to change notification settings

MithrilJS/mithril-codemods

Repository files navigation

mithril-codemods NPM Version NPM License

NPM Downloads Build Status Dependency Status devDependency Status

Automated porting of mithril@0.2 code to mithril@1.0.

Usage

> npm i -g mithril-codemods
> mithril-codemods --help

Usage
    $ mithril-codemods [<file|glob> ...]

Options
    --unsafe, -u    Use unsafe transforms
    --apply,  -a    Apply transforms (instead of a dry run)

Examples
    mithril-codemods **/*.js
    mithril-codemods --apply **/*.js
    mithril-codemods -ua some/specific/file.js

Transforms

Safe

These transforms are pretty safe and unlikely to have many false positives.

⚠️️️ Unsafe ⚠️

These transform are usually fine, but not applied by default since they can have unfortunate side-effects.

Warnings

There are certain classes of changes that are impossible to automatically convert.

About

jscodeshift-powered mithril@0.2.x to mithril@1.x transformations

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published