File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
- const { isPrimerComponent } = require ( '../utils/is-primer-component' )
2
- const { pick } = require ( '@styled-system/props' )
3
- const { some, last } = require ( 'lodash' )
1
+ const { isPrimerComponent} = require ( '../utils/is-primer-component' )
2
+ const { pick} = require ( '@styled-system/props' )
3
+ const { some, last} = require ( 'lodash' )
4
4
5
5
// Components for which we allow all styled system props
6
6
const alwaysExcludedComponents = new Set ( [
@@ -107,15 +107,15 @@ module.exports = {
107
107
...systemProps . map ( node => fixer . remove ( node ) ) ,
108
108
...( stylesToAdd . size > 0
109
109
? [
110
- existingSxProp
111
- ? // Update an existing sx prop
112
- fixer . insertTextAfter (
113
- last ( existingSxProp . value . expression . properties ) ,
114
- `, ${ objectEntriesStringFromStylesMap ( stylesToAdd ) } `
115
- )
116
- : // Insert new sx prop
117
- fixer . insertTextAfter ( last ( jsxNode . attributes ) , sxPropTextFromStylesMap ( systemPropstylesMap ) )
118
- ]
110
+ existingSxProp
111
+ ? // Update an existing sx prop
112
+ fixer . insertTextAfter (
113
+ last ( existingSxProp . value . expression . properties ) ,
114
+ `, ${ objectEntriesStringFromStylesMap ( stylesToAdd ) } `
115
+ )
116
+ : // Insert new sx prop
117
+ fixer . insertTextAfter ( last ( jsxNode . attributes ) , sxPropTextFromStylesMap ( systemPropstylesMap ) )
118
+ ]
119
119
: [ ] )
120
120
]
121
121
}
You can’t perform that action at this time.
0 commit comments