⬆️ Bump prettier from 1.18.2 to 2.0.5 (#507)

This commit is contained in:
dependabot-preview[bot] 2020-07-17 17:49:19 +00:00 committed by GitHub
parent c7e75e54b5
commit f6ba59c7d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 22 additions and 22 deletions

View File

@ -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",

View File

@ -1,5 +1,5 @@
export const props = {
target: '_blank',
icon: 'star',
text: 'GitHub'
text: 'GitHub',
}

View File

@ -1,4 +1,4 @@
export const props = {
profile: 'https://github.com/profile',
avatar: 'https://github.com/avatar'
avatar: 'https://github.com/avatar',
}

View File

@ -4,7 +4,7 @@ type Props = {
code: string,
description: string,
emoji: string,
name: string
name: string,
}
const Gitmoji = (props: Props) => (

View File

@ -1,5 +1,5 @@
import { gitmojis } from '../../../data/gitmojis.json'
export const props = {
gitmojis: gitmojis.slice(0, 6)
gitmojis: gitmojis.slice(0, 6),
}

View File

@ -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()

View File

@ -1,3 +1,3 @@
export const props = {
name: 'star'
name: 'star',
}

View File

@ -6,7 +6,7 @@ import LOGO_STATUSES, {
Sexy,
Smiling,
Sunglasses,
Tongue
Tongue,
} from './statuses'
export const getIconByStatus = (status: $Keys<typeof LOGO_STATUSES>) => {

View File

@ -210,7 +210,7 @@ const LOGO_STATUSES: Object = {
SEXY: 'sexy',
SMILING: 'smiling',
SUNGLASSES: 'sunglasses',
TONGUE: 'tongue'
TONGUE: 'tongue',
}
export default LOGO_STATUSES

View File

@ -1,3 +1,3 @@
export const props = {
headerWithSocialButtons: true
headerWithSocialButtons: true,
}

View File

@ -1,4 +1,4 @@
export const props = {
pageUrl: '/about',
pageTitle: 'About'
pageTitle: 'About',
}

View File

@ -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 {
<script
type="text/javascript"
dangerouslySetInnerHTML={{
__html: `(function(a,e,f,g,b,c,d){a.GoogleAnalyticsObject=b;a[b]=a[b]||function(){(a[b].q=a[b].q||[]).push(arguments)};a[b].l=1*new Date;c=e.createElement(f);d=e.getElementsByTagName(f)[0];c.async=1;c.src=g;d.parentNode.insertBefore(c,d)})(window,document,"script","//www.google-analytics.com/analytics.js","ga");ga("create","UA-67824860-7","auto");ga("send","pageview");`
__html: `(function(a,e,f,g,b,c,d){a.GoogleAnalyticsObject=b;a[b]=a[b]||function(){(a[b].q=a[b].q||[]).push(arguments)};a[b].l=1*new Date;c=e.createElement(f);d=e.getElementsByTagName(f)[0];c.async=1;c.src=g;d.parentNode.insertBefore(c,d)})(window,document,"script","//www.google-analytics.com/analytics.js","ga");ga("create","UA-67824860-7","auto");ga("send","pageview");`,
}}
/>
<script
@ -52,7 +52,7 @@ class CustomDocument extends Document {
dangerouslySetInnerHTML={{
__html: `(function(e){function d(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function b(a){this.options=d({},this.options);d(this.options,a);this._init()}b.prototype.options={wrapper:document.body,message:"yo!",layout:"growl",effect:"slide",type:"error",ttl:6E3,onClose:function(){return!1},onOpen:function(){return!1}};b.prototype._init=function(){this.ntf=document.createElement("div");this.ntf.className="ns-box ns-"+this.options.layout+" ns-effect-"+this.options.effect+" ns-type-"+this.options.type;
this.ntf.innerHTML='<div class="ns-box-inner">'+this.options.message+'</div><span class="ns-close"></span></div>';this.options.wrapper.insertBefore(this.ntf, this.options.wrapper.nextSibling);var a=this;this.dismissttl=setTimeout(function(){a.active&&a.dismiss()},this.options.ttl);this._initEvents()};b.prototype._initEvents=function(){var a=this;this.ntf.querySelector(".ns-close").addEventListener("click",function(){a.dismiss()})};b.prototype.show=function(){this.active=!0;this.ntf.classList.remove("ns-hide");
this.ntf.classList.add("ns-show");this.options.onOpen()};b.prototype.dismiss=function(){var a=this;this.active=!1;clearTimeout(this.dismissttl);this.ntf.classList.remove("ns-show");setTimeout(function(){a.ntf.classList.add("ns-hide");a.options.onClose()},25);var b=function(c){if(c.target!==a.ntf)return!1;this.removeEventListener("animationend",b);a.options.wrapper.removeChild(this)};this.ntf.addEventListener("animationend",b)};e.NotificationFx=b})(window);`
this.ntf.classList.add("ns-show");this.options.onOpen()};b.prototype.dismiss=function(){var a=this;this.active=!1;clearTimeout(this.dismissttl);this.ntf.classList.remove("ns-show");setTimeout(function(){a.ntf.classList.add("ns-hide");a.options.onClose()},25);var b=function(c){if(c.target!==a.ntf)return!1;this.removeEventListener("animationend",b);a.options.wrapper.removeChild(this)};this.ntf.addEventListener("animationend",b)};e.NotificationFx=b})(window);`,
}}
/>
</body>

View File

@ -69,5 +69,5 @@ $gitmojis: (
wheelchair: #00b1fb,
white-check-mark: #77e856,
wrench: #ffc400,
zap: #40c4ff
zap: #40c4ff,
);

View File

@ -8000,10 +8000,10 @@ prepend-http@^1.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=
prettier@1.18.2:
version "1.18.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==
prettier@2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==
pretty-format@^26.1.0:
version "26.1.0"