diff --git a/package.json b/package.json index bf2ba88..baf3217 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "jsonlint": "^1.6.3", "lint-staged": "^10.0.0-1", "optimize-css-assets-webpack-plugin": "^5.0.3", - "prettier": "1.18.2" + "prettier": "2.0.5" }, "author": "Carlos Cuesta", "license": "MIT", diff --git a/src/components/Button/__tests__/stubs.js b/src/components/Button/__tests__/stubs.js index 37c968e..f143b36 100644 --- a/src/components/Button/__tests__/stubs.js +++ b/src/components/Button/__tests__/stubs.js @@ -1,5 +1,5 @@ export const props = { target: '_blank', icon: 'star', - text: 'GitHub' + text: 'GitHub', } diff --git a/src/components/ContributorsList/__tests__/stubs.js b/src/components/ContributorsList/__tests__/stubs.js index 8a42e4d..d563e53 100644 --- a/src/components/ContributorsList/__tests__/stubs.js +++ b/src/components/ContributorsList/__tests__/stubs.js @@ -1,4 +1,4 @@ export const props = { profile: 'https://github.com/profile', - avatar: 'https://github.com/avatar' + avatar: 'https://github.com/avatar', } diff --git a/src/components/GitmojiList/Gitmoji/index.js b/src/components/GitmojiList/Gitmoji/index.js index 96a9322..f7430c0 100644 --- a/src/components/GitmojiList/Gitmoji/index.js +++ b/src/components/GitmojiList/Gitmoji/index.js @@ -4,7 +4,7 @@ type Props = { code: string, description: string, emoji: string, - name: string + name: string, } const Gitmoji = (props: Props) => ( diff --git a/src/components/GitmojiList/__tests__/stubs.js b/src/components/GitmojiList/__tests__/stubs.js index 54f7d24..4ee35d1 100644 --- a/src/components/GitmojiList/__tests__/stubs.js +++ b/src/components/GitmojiList/__tests__/stubs.js @@ -1,5 +1,5 @@ import { gitmojis } from '../../../data/gitmojis.json' export const props = { - gitmojis: gitmojis.slice(0, 6) + gitmojis: gitmojis.slice(0, 6), } diff --git a/src/components/GitmojiList/index.js b/src/components/GitmojiList/index.js index 932cae5..a2c62c2 100644 --- a/src/components/GitmojiList/index.js +++ b/src/components/GitmojiList/index.js @@ -9,15 +9,15 @@ type Props = { code: string, description: string, emoji: string, - name: string - }> + name: string, + }>, } const GitmojiList = (props: Props) => { React.useEffect(() => { const clipboard = new Clipboard('.gitmoji-code, .gitmoji-emoji') - clipboard.on('success', function(e) { + clipboard.on('success', function (e) { window.ga('send', 'event', 'Gitmoji', 'Copy to Clipboard') const elementClasses = e.trigger.classList @@ -31,7 +31,7 @@ const GitmojiList = (props: Props) => { message: notificationMessage, layout: 'growl', effect: 'scale', - type: 'notice' + type: 'notice', }) notification.show() diff --git a/src/components/Icon/__tests__/stubs.js b/src/components/Icon/__tests__/stubs.js index 21b5563..3301fe9 100644 --- a/src/components/Icon/__tests__/stubs.js +++ b/src/components/Icon/__tests__/stubs.js @@ -1,3 +1,3 @@ export const props = { - name: 'star' + name: 'star', } diff --git a/src/components/Layout/Logo/index.js b/src/components/Layout/Logo/index.js index 33eb592..ad3274b 100644 --- a/src/components/Layout/Logo/index.js +++ b/src/components/Layout/Logo/index.js @@ -6,7 +6,7 @@ import LOGO_STATUSES, { Sexy, Smiling, Sunglasses, - Tongue + Tongue, } from './statuses' export const getIconByStatus = (status: $Keys) => { diff --git a/src/components/Layout/Logo/statuses/index.js b/src/components/Layout/Logo/statuses/index.js index 9380237..905b5a9 100644 --- a/src/components/Layout/Logo/statuses/index.js +++ b/src/components/Layout/Logo/statuses/index.js @@ -210,7 +210,7 @@ const LOGO_STATUSES: Object = { SEXY: 'sexy', SMILING: 'smiling', SUNGLASSES: 'sunglasses', - TONGUE: 'tongue' + TONGUE: 'tongue', } export default LOGO_STATUSES diff --git a/src/components/Layout/__tests__/stubs.js b/src/components/Layout/__tests__/stubs.js index 3e0c0c9..9550ed6 100644 --- a/src/components/Layout/__tests__/stubs.js +++ b/src/components/Layout/__tests__/stubs.js @@ -1,3 +1,3 @@ export const props = { - headerWithSocialButtons: true + headerWithSocialButtons: true, } diff --git a/src/components/SEO/__tests__/stubs.js b/src/components/SEO/__tests__/stubs.js index ac532c5..2fc5c64 100644 --- a/src/components/SEO/__tests__/stubs.js +++ b/src/components/SEO/__tests__/stubs.js @@ -1,4 +1,4 @@ export const props = { pageUrl: '/about', - pageTitle: 'About' + pageTitle: 'About', } diff --git a/src/pages/_document.js b/src/pages/_document.js index 0e7a406..deb8e16 100644 --- a/src/pages/_document.js +++ b/src/pages/_document.js @@ -21,7 +21,7 @@ class InlineStylesHead extends Head { nonce={this.props.nonce} data-href={`${assetPrefix}/_next/${file}`} dangerouslySetInnerHTML={{ - __html: readFileSync(join(process.cwd(), '.next', file), 'utf-8') + __html: readFileSync(join(process.cwd(), '.next', file), 'utf-8'), }} /> )) @@ -44,7 +44,7 @@ class CustomDocument extends Document {