1.1.3 • Published 8 years ago

react-style-px-suffix-codemod v1.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

react-style-px-suffix-codemod

Circle CI

Starting with React 15, React will warn that unitless values will no longer bw appended with px and the appending will be removed in future versions of react,this is a codemod that finds unitless specifications in your code and appends with px.

use

  • npm install jscodeshift -g
  • npm install react-style-px-suffix-codemod
  • run this script with jscodeshift -t node_modules/react-style-px-suffix-codemod <DIRECTORY_OR_FILE_TO_RUN_ON>

options

It is also possible to pass a --ignore flag when running to specify properties that you do not want to have px appended, example below. The properties should be comma delimited

jscodeshift -t <THIS_SCRIPT> <DIRECTORY_OR_FILE_TO_RUN_ON> --ignore=fontSize,hats

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago