babel-plugin-react-rename-unsafe-lifecycle
Rename unsafe react lifecycle: componentWillMount by UNSAFEcomponentWillMount, componentWillReceiveProps by UNSAFEcomponentWillReceiveProps and componentWillUpdate by UNSAFEcomponentWillUpdateUpdate your .babelrc if you want to continue using componentWill
{
"plugins": [
["react-rename-unsafe-lifecycle"]
]
}
Update Your package.json if you want to update your nodemodules
{
"scripts": {
"postinstall": "jscodeshift --silent --babel --transform ./node_modules/babel-plugin-react-rename-unsafe-lifecycle/lib/rename-unsafe-lifecycles.js */react-*/**.js --ignore-pattern */react-native/",
}
}
Thx to jscodeshift ;)