From bab36e0559bf9347a8f415025dcba4ddf1f6fd4f Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Mon, 6 Nov 2017 15:08:21 -0500 Subject: [PATCH] Fix ESLint issues --- __tests__/configFunction.test.js | 18 +++++++++--------- src/generators/spacing.js | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/__tests__/configFunction.test.js b/__tests__/configFunction.test.js index 11f93876a..32d2a5a3d 100644 --- a/__tests__/configFunction.test.js +++ b/__tests__/configFunction.test.js @@ -5,7 +5,7 @@ function run(input, opts = {}) { return postcss([plugin(() => opts)]).process(input) } -test("it looks up values in the config using dot notation", () => { +test('it looks up values in the config using dot notation', () => { const input = ` .banana { color: config('colors.yellow'); } ` @@ -17,14 +17,14 @@ test("it looks up values in the config using dot notation", () => { return run(input, { colors: { yellow: '#f7cc50', - } + }, }).then(result => { expect(result.css).toEqual(output) expect(result.warnings().length).toBe(0) }) }) -test("quotes are optional around the lookup path", () => { +test('quotes are optional around the lookup path', () => { const input = ` .banana { color: config(colors.yellow); } ` @@ -36,14 +36,14 @@ test("quotes are optional around the lookup path", () => { return run(input, { colors: { yellow: '#f7cc50', - } + }, }).then(result => { expect(result.css).toEqual(output) expect(result.warnings().length).toBe(0) }) }) -test("a default value can be provided", () => { +test('a default value can be provided', () => { const input = ` .cookieMonster { color: config('colors.blue', #0000ff); } ` @@ -55,14 +55,14 @@ test("a default value can be provided", () => { return run(input, { colors: { yellow: '#f7cc50', - } + }, }).then(result => { expect(result.css).toEqual(output) expect(result.warnings().length).toBe(0) }) }) -test("quotes are preserved around default values", () => { +test('quotes are preserved around default values', () => { const input = ` .heading { font-family: config('fonts.sans', "Helvetica Neue"); } ` @@ -73,8 +73,8 @@ test("quotes are preserved around default values", () => { return run(input, { fonts: { - serif: "Constantia", - } + serif: 'Constantia', + }, }).then(result => { expect(result.css).toEqual(output) expect(result.warnings().length).toBe(0) diff --git a/src/generators/spacing.js b/src/generators/spacing.js index 456471556..eb68ddab3 100644 --- a/src/generators/spacing.js +++ b/src/generators/spacing.js @@ -119,7 +119,7 @@ export default function({ padding, margin, negativeMargin }) { 'margin-bottom': 'auto', }, 'm-auto': { - 'margin': 'auto', + margin: 'auto', }, }), defineNegativeMargin(negativeMargin),