From 66ee71d4cfe744987a68ff8e3072a192ffdabe6a Mon Sep 17 00:00:00 2001 From: Samuel W Date: Sat, 9 May 2020 00:12:57 +0800 Subject: [PATCH] Fix Print Width --- .prettierrc | 3 ++- config.js | 6 ++---- src/utils/get-contact-href.test.js | 4 +--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.prettierrc b/.prettierrc index 0a72520..fc56e31 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,5 +2,6 @@ "trailingComma": "es5", "tabWidth": 2, "semi": true, - "singleQuote": true + "singleQuote": true, + "printWidth": 120 } diff --git a/config.js b/config.js index 80f705b..9814cc3 100644 --- a/config.js +++ b/config.js @@ -4,8 +4,7 @@ module.exports = { url: 'https://lumen.netlify.com', pathPrefix: '/', title: 'Blog by John Doe', - subtitle: - 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.', + subtitle: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.', copyright: '© All rights reserved.', disqusShortname: '', postsPerPage: 4, @@ -28,8 +27,7 @@ module.exports = { author: { name: 'John Doe', photo: '/photo.jpg', - bio: - 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.', + bio: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.', contacts: { email: '', facebook: '#', diff --git a/src/utils/get-contact-href.test.js b/src/utils/get-contact-href.test.js index a53c23c..7f9a925 100644 --- a/src/utils/get-contact-href.test.js +++ b/src/utils/get-contact-href.test.js @@ -15,9 +15,7 @@ test('getContactHref', () => { expect(getContactHref('gitlab', '#')).toBe('https://www.gitlab.com/#'); expect(getContactHref('weibo', '#')).toBe('https://www.weibo.com/#'); expect(getContactHref('codepen', '#')).toBe('https://www.codepen.io/#'); - expect(getContactHref('youtube', '#')).toBe( - 'https://www.youtube.com/channel/#' - ); + expect(getContactHref('youtube', '#')).toBe('https://www.youtube.com/channel/#'); expect(getContactHref('soundcloud', '#')).toBe('https://soundcloud.com/#'); expect(getContactHref('medium', '#')).toBe('https://medium.com/#'); });