From 2d91aa8caaf3346c9779c5ae57f55f4245b0d197 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Wed, 24 Apr 2019 08:40:00 -0400 Subject: [PATCH] Remove unused lodash dependency, use implicit return --- stubs/defaultConfig.stub.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/stubs/defaultConfig.stub.js b/stubs/defaultConfig.stub.js index 28c55480e..5802f9f13 100644 --- a/stubs/defaultConfig.stub.js +++ b/stubs/defaultConfig.stub.js @@ -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',