Remove unused lodash dependency, use implicit return

This commit is contained in:
Adam Wathan 2019-04-24 08:40:00 -04:00
parent a7ec9c2396
commit 2d91aa8caa

View File

@ -1,5 +1,3 @@
const _ = require('lodash')
module.exports = {
prefix: '',
important: false,
@ -310,9 +308,10 @@ module.exports = {
margin: theme => {
const negativeSpacing = Object.keys(theme('spacing'))
.filter(key => theme('spacing')[key] !== '0')
.reduce((negativeSpacing, key) => {
return { ...negativeSpacing, [`-${key}`]: `-${theme('spacing')[key]}` }
}, {})
.reduce((negativeSpacing, key) => ({
...negativeSpacing,
[`-${key}`]: `-${theme('spacing')[key]}`
}), {})
return {
auto: 'auto',