1- 'use strict' /* eslint-disable */
1+ /* eslint-disable consistent-return, guard-for-in, no-restricted-syntax, no-lonely-if */
22
33import isObject from 'lodash/isObject'
44import merge from 'merge'
@@ -9,7 +9,7 @@ import merge from 'merge'
99*/
1010
1111const localProps = {
12- borderRadius : value => {
12+ borderRadius : ( value ) => {
1313 if ( value !== null ) {
1414 return {
1515 msBorderRadius : value ,
@@ -21,7 +21,7 @@ const localProps = {
2121 }
2222 } ,
2323
24- boxShadow : value => {
24+ boxShadow : ( value ) => {
2525 if ( value !== null ) {
2626 return {
2727 msBoxShadow : value ,
@@ -33,7 +33,7 @@ const localProps = {
3333 }
3434 } ,
3535
36- userSelect : value => {
36+ userSelect : ( value ) => {
3737 if ( value !== null ) {
3838 return {
3939 WebkitTouchCallout : value ,
@@ -46,7 +46,7 @@ const localProps = {
4646 }
4747 } ,
4848
49- flex : value => {
49+ flex : ( value ) => {
5050 if ( value !== null ) {
5151 return {
5252 WebkitBoxFlex : value ,
@@ -58,7 +58,7 @@ const localProps = {
5858 }
5959 } ,
6060
61- flexBasis : value => {
61+ flexBasis : ( value ) => {
6262 if ( value !== null ) {
6363 return {
6464 WebkitFlexBasis : value ,
@@ -67,7 +67,7 @@ const localProps = {
6767 }
6868 } ,
6969
70- justifyContent : value => {
70+ justifyContent : ( value ) => {
7171 if ( value !== null ) {
7272 return {
7373 WebkitJustifyContent : value ,
@@ -76,7 +76,7 @@ const localProps = {
7676 }
7777 } ,
7878
79- transition : value => {
79+ transition : ( value ) => {
8080 if ( value !== null ) {
8181 return {
8282 msTransition : value ,
@@ -88,7 +88,7 @@ const localProps = {
8888 }
8989 } ,
9090
91- transform : value => {
91+ transform : ( value ) => {
9292 if ( value !== null ) {
9393 return {
9494 msTransform : value ,
@@ -100,7 +100,7 @@ const localProps = {
100100 }
101101 } ,
102102
103- Absolute : value => {
103+ Absolute : ( value ) => {
104104 if ( value !== null ) {
105105 const direction = value . split ( ' ' )
106106 return {
@@ -123,12 +123,11 @@ const localProps = {
123123}
124124
125125const transform = ( styleObject , customFuncs , parent ) => {
126-
127126 const customProps = merge ( customFuncs , localProps )
128127 const obj = { }
129128
130- for ( var key in styleObject ) {
131- var value = styleObject [ key ]
129+ for ( const key in styleObject ) {
130+ const value = styleObject [ key ]
132131
133132 // If its an object
134133 if ( isObject ( value ) && ! Array . isArray ( value ) ) {
@@ -138,9 +137,9 @@ const transform = (styleObject, customFuncs, parent) => {
138137 // Check to see if a custom prop exists for it
139138 if ( customProps [ key ] ) {
140139 // let loop though and save the results from the function
141- var customResults = customProps [ key ] ( value , parent )
142- for ( var customKey in customResults ) {
143- var customValue = customResults [ customKey ]
140+ const customResults = customProps [ key ] ( value , parent )
141+ for ( const customKey in customResults ) {
142+ const customValue = customResults [ customKey ]
144143 obj [ customKey ] = customValue
145144 }
146145 } else {
0 commit comments