diff --git a/docs/docs/creating-a-transformer-plugin.md b/docs/docs/creating-a-transformer-plugin.md
index 70e626ce9440e..63cc432d8e74e 100644
--- a/docs/docs/creating-a-transformer-plugin.md
+++ b/docs/docs/creating-a-transformer-plugin.md
@@ -276,9 +276,7 @@ Cache keys should at least contain the contentDigest of the concerned node. For
```javascript:title=extend-node-type.js
const htmlCacheKey = node =>
- `transformer-remark-markdown-html-${
- node.internal.contentDigest
- }-${pluginsCacheStr}-${pathPrefixCacheStr}`
+ `transformer-remark-markdown-html-${node.internal.contentDigest}-${pluginsCacheStr}-${pathPrefixCacheStr}`
```
Accessing and setting content in the cache is as simple as:
diff --git a/docs/docs/images/disqus-logo.svg b/docs/docs/images/disqus-logo.svg
index 9eef857d7152a..d3d0e1985545c 100644
--- a/docs/docs/images/disqus-logo.svg
+++ b/docs/docs/images/disqus-logo.svg
@@ -1,3 +1,3 @@
diff --git a/examples/image-processing/src/pages/index.js b/examples/image-processing/src/pages/index.js
index cfbbe86b13810..6846662a5cd60 100644
--- a/examples/image-processing/src/pages/index.js
+++ b/examples/image-processing/src/pages/index.js
@@ -140,9 +140,7 @@ class Index extends React.Component {
diff --git a/examples/using-gatsby-image/src/components/image-gallery.js b/examples/using-gatsby-image/src/components/image-gallery.js
index 11e66c55a351f..569518796cd13 100644
--- a/examples/using-gatsby-image/src/components/image-gallery.js
+++ b/examples/using-gatsby-image/src/components/image-gallery.js
@@ -95,9 +95,7 @@ const ImageGallery = edges => (
SVG
diff --git a/examples/using-gatsby-image/src/pages/background-color.js b/examples/using-gatsby-image/src/pages/background-color.js
index 17ef31a9ec414..7ace125ed3c58 100644
--- a/examples/using-gatsby-image/src/pages/background-color.js
+++ b/examples/using-gatsby-image/src/pages/background-color.js
@@ -9,18 +9,14 @@ const BackgroundColor = ({ data, location }) => (
Background Color
@@ -39,9 +35,7 @@ const BackgroundColor = ({ data, location }) => (
)
diff --git a/examples/using-gatsby-image/src/pages/blur-up.js b/examples/using-gatsby-image/src/pages/blur-up.js
index 33f505c8dc6dc..7b21783404c34 100644
--- a/examples/using-gatsby-image/src/pages/blur-up.js
+++ b/examples/using-gatsby-image/src/pages/blur-up.js
@@ -10,17 +10,13 @@ const BlurUp = ({ data, location }) => (
Blur Up
@@ -46,9 +42,7 @@ const BlurUp = ({ data, location }) => (
)
diff --git a/examples/using-gatsby-image/src/pages/index.js b/examples/using-gatsby-image/src/pages/index.js
index c184cb5f0056b..dd484f8a3127d 100644
--- a/examples/using-gatsby-image/src/pages/index.js
+++ b/examples/using-gatsby-image/src/pages/index.js
@@ -14,9 +14,7 @@ const FeatureList = styled(`ul`)`
const FeatureListItem = styled.li({
backgroundImage: `url(
- "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='${
- colors.gatsby
- }' d='M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9L10,17Z' /%3E%3C/svg%3E")`,
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='${colors.gatsby}' d='M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9L10,17Z' /%3E%3C/svg%3E")`,
backgroundPosition: `0 .25em`,
backgroundRepeat: `no-repeat`,
backgroundSize: `1em`,
diff --git a/examples/using-gatsby-image/src/pages/prefer-webp.js b/examples/using-gatsby-image/src/pages/prefer-webp.js
index 660e6111b3c7b..f748d76093ddb 100644
--- a/examples/using-gatsby-image/src/pages/prefer-webp.js
+++ b/examples/using-gatsby-image/src/pages/prefer-webp.js
@@ -10,17 +10,13 @@ const PreferWebp = ({ data, location }) => (
Prefer WebP
WebP is a modern image format that provides both lossless and lossy
@@ -38,9 +34,7 @@ const PreferWebp = ({ data, location }) => (
diff --git a/examples/using-gatsby-image/src/pages/traced-svg.js b/examples/using-gatsby-image/src/pages/traced-svg.js
index 38229536cba21..92b40e3aea273 100644
--- a/examples/using-gatsby-image/src/pages/traced-svg.js
+++ b/examples/using-gatsby-image/src/pages/traced-svg.js
@@ -12,17 +12,13 @@ const TracedSVG = ({ data, location }) => (
Traced SVG Placeholders
Generates a{` `}
@@ -44,9 +40,7 @@ const TracedSVG = ({ data, location }) => (
)
diff --git a/examples/using-gatsby-image/src/utils/typography.js b/examples/using-gatsby-image/src/utils/typography.js
index 426244aa7bcaa..9ce9e2972ce1b 100644
--- a/examples/using-gatsby-image/src/utils/typography.js
+++ b/examples/using-gatsby-image/src/utils/typography.js
@@ -44,9 +44,7 @@ const _options = {
marginTop: rhythm(2),
},
a: {
- backgroundImage: `linear-gradient(to top, ${colors.ui.bright}, ${
- colors.ui.bright
- } 1px, rgba(0, 0, 0, 0) 2px)`,
+ backgroundImage: `linear-gradient(to top, ${colors.ui.bright}, ${colors.ui.bright} 1px, rgba(0, 0, 0, 0) 2px)`,
color: colors.gatsby,
fontWeight: `bold`,
textDecoration: `none`,
diff --git a/examples/using-remark/src/pages/2017-01-02---responsive-images-and-iframes/awesome_tiger.svg b/examples/using-remark/src/pages/2017-01-02---responsive-images-and-iframes/awesome_tiger.svg
index a74a4c0b4459a..f192ad9ac2ce2 100644
--- a/examples/using-remark/src/pages/2017-01-02---responsive-images-and-iframes/awesome_tiger.svg
+++ b/examples/using-remark/src/pages/2017-01-02---responsive-images-and-iframes/awesome_tiger.svg
@@ -59,7 +59,7 @@
-
+
@@ -80,7 +80,7 @@
-
+
@@ -96,8 +96,8 @@
-
-
+
+
@@ -107,7 +107,7 @@
-
+
diff --git a/examples/using-remark/src/utils/typography.js b/examples/using-remark/src/utils/typography.js
index 909ebf6ec4219..6d9b1d6d72fcc 100644
--- a/examples/using-remark/src/utils/typography.js
+++ b/examples/using-remark/src/utils/typography.js
@@ -156,15 +156,7 @@ const options = {
".post a:not(.gatsby-resp-image-link):not(.anchor), .link-underline": {
position: `relative`,
backgroundImage: `linear-gradient(${colors.link},${colors.link})`,
- textShadow: `0.03em 0 ${colors.white}, -0.03em 0 ${
- colors.white
- }, 0 0.03em ${colors.white}, 0 -0.03em ${colors.white}, 0.06em 0 ${
- colors.white
- }, -0.06em 0 ${colors.white}, 0.09em 0 ${colors.white}, -0.09em 0 ${
- colors.white
- }, 0.12em 0 ${colors.white}, -0.12em 0 ${colors.white}, 0.15em 0 ${
- colors.white
- }, -0.15em 0 ${colors.white}`,
+ textShadow: `0.03em 0 ${colors.white}, -0.03em 0 ${colors.white}, 0 0.03em ${colors.white}, 0 -0.03em ${colors.white}, 0.06em 0 ${colors.white}, -0.06em 0 ${colors.white}, 0.09em 0 ${colors.white}, -0.09em 0 ${colors.white}, 0.12em 0 ${colors.white}, -0.12em 0 ${colors.white}, 0.15em 0 ${colors.white}, -0.15em 0 ${colors.white}`,
transition: `all 250ms cubic-bezier(0.4, 0, 0.2, 1)`,
backgroundPosition: `0 98%`,
backgroundRepeat: `repeat-x`,
@@ -172,9 +164,7 @@ const options = {
},
".post a:not(.gatsby-resp-image-link):not(.anchor):hover, .link-underline:hover": {
color: `${colors.linkHover}`,
- backgroundImage: `linear-gradient(${colors.linkHover},${
- colors.linkHover
- })`,
+ backgroundImage: `linear-gradient(${colors.linkHover},${colors.linkHover})`,
},
".post a.anchor": {
textShadow: `0 !important`,
diff --git a/markdown.config.js b/markdown.config.js
index dcca200b42db8..821a614daf138 100644
--- a/markdown.config.js
+++ b/markdown.config.js
@@ -23,9 +23,7 @@ module.exports = {
.map(name => {
const starter = starters[name]
return `
- |[${name}](https://github.com/gatsbyjs/gatsby-starter-${name})|[gatsby-starter-${name}-demo.netlify.com](https://gatsby-starter-${name}-demo.netlify.com/)|${
- starter.description
- }|
+ |[${name}](https://github.com/gatsbyjs/gatsby-starter-${name})|[gatsby-starter-${name}-demo.netlify.com](https://gatsby-starter-${name}-demo.netlify.com/)|${starter.description}|
`.trim()
})
.join(`\n`)}
diff --git a/package.json b/package.json
index 9f5579738ad7a..e8c63c353672d 100644
--- a/package.json
+++ b/package.json
@@ -36,7 +36,7 @@
"markdown-magic": "^0.2.1",
"npm-run-all": "4.1.5",
"plop": "^1.9.1",
- "prettier": "1.17.1",
+ "prettier": "1.18.2",
"rimraf": "^2.7.1",
"svgo": "1.3.0",
"ts-jest": "^22",
diff --git a/packages/babel-plugin-remove-graphql-queries/src/index.js b/packages/babel-plugin-remove-graphql-queries/src/index.js
index 40055485d1cd9..57420f185143e 100644
--- a/packages/babel-plugin-remove-graphql-queries/src/index.js
+++ b/packages/babel-plugin-remove-graphql-queries/src/index.js
@@ -120,9 +120,7 @@ function getGraphQLTag(path) {
return { ast, text, hash, isGlobal }
} catch (err) {
throw new Error(
- `BabelPluginRemoveGraphQLQueries: GraphQL syntax error in query:\n\n${text}\n\nmessage:\n\n${
- err.message
- }`
+ `BabelPluginRemoveGraphQLQueries: GraphQL syntax error in query:\n\n${text}\n\nmessage:\n\n${err.message}`
)
}
}
diff --git a/packages/gatsby-cli/src/reporter/reporters/yurnalist/index.js b/packages/gatsby-cli/src/reporter/reporters/yurnalist/index.js
index bea6f0bad90bc..c2aed9d6c0449 100644
--- a/packages/gatsby-cli/src/reporter/reporters/yurnalist/index.js
+++ b/packages/gatsby-cli/src/reporter/reporters/yurnalist/index.js
@@ -52,9 +52,7 @@ module.exports = {
locString ? `\n\nFile: ${chalk.blue(locString)}` : ``
}${
details.docsUrl
- ? `\n\nSee our docs page for more info on this error: ${
- details.docsUrl
- }`
+ ? `\n\nSee our docs page for more info on this error: ${details.docsUrl}`
: ``
}`
diff --git a/packages/gatsby-cli/src/structured-errors/error-map.js b/packages/gatsby-cli/src/structured-errors/error-map.js
index 433558db49dec..90febdf3028d0 100644
--- a/packages/gatsby-cli/src/structured-errors/error-map.js
+++ b/packages/gatsby-cli/src/structured-errors/error-map.js
@@ -46,9 +46,7 @@ const errorMap = {
? `\n\nDid you mean to use ` + `"${context.closestFragment}"?`
: ``
- return `There was an error in your GraphQL query:\n\nThe fragment "${
- context.fragmentName
- }" does not exist.${closetFragment}`
+ return `There was an error in your GraphQL query:\n\nThe fragment "${context.fragmentName}" does not exist.${closetFragment}`
},
type: `GRAPHQL`,
level: `ERROR`,
@@ -61,34 +59,26 @@ const errorMap = {
// Config errors
"10123": {
text: context =>
- `We encountered an error while trying to load your site's ${
- context.configName
- }. Please fix the error and try again.`,
+ `We encountered an error while trying to load your site's ${context.configName}. Please fix the error and try again.`,
type: `CONFIG`,
level: `ERROR`,
},
"10124": {
text: context =>
- `It looks like you were trying to add the config file? Please rename "${
- context.nearMatch
- }" to "${context.configName}.js"`,
+ `It looks like you were trying to add the config file? Please rename "${context.nearMatch}" to "${context.configName}.js"`,
type: `CONFIG`,
level: `ERROR`,
},
"10125": {
text: context =>
- `Your ${
- context.configName
- } file is in the wrong place. You've placed it in the src/ directory. It must instead be at the root of your site next to your package.json file.`,
+ `Your ${context.configName} file is in the wrong place. You've placed it in the src/ directory. It must instead be at the root of your site next to your package.json file.`,
type: `CONFIG`,
level: `ERROR`,
},
"10126": {
text: context =>
`${context.path}/${context.configName} cannot export a function.` +
- `\n\nA ${
- context.configName
- } exported as a Function can only be used as a theme and not run directly.` +
+ `\n\nA ${context.configName} exported as a Function can only be used as a theme and not run directly.` +
`\nIf you are trying to run a theme directly, use the theme in an example site or starter instead and run that site to test.` +
`\nIf you are in the root gatsby-config.js for your site, change the export to be an object and not a function as functions` +
`\nare not supported in the root gatsby-config.`,
@@ -98,9 +88,7 @@ const errorMap = {
// Plugin errors
"11321": {
text: context =>
- `"${context.pluginName}" threw an error while running the ${
- context.api
- } lifecycle:\n\n${context.message}`,
+ `"${context.pluginName}" threw an error while running the ${context.api} lifecycle:\n\n${context.message}`,
type: `PLUGIN`,
level: `ERROR`,
},
@@ -128,9 +116,7 @@ const errorMap = {
},
"11324": {
text: context =>
- `${
- context.message
- }\n\nSee the documentation for the "createPage" action — https://www.gatsbyjs.org/docs/actions/#createPage`,
+ `${context.message}\n\nSee the documentation for the "createPage" action — https://www.gatsbyjs.org/docs/actions/#createPage`,
level: `ERROR`,
},
"11325": {
@@ -163,16 +149,12 @@ const errorMap = {
},
"11327": {
text: context =>
- `You have an empty file in the "src/pages" directory at "${
- context.relativePath
- }". Please remove it or make it a valid component`,
+ `You have an empty file in the "src/pages" directory at "${context.relativePath}". Please remove it or make it a valid component`,
level: `ERROR`,
},
"11328": {
text: context =>
- `A page component must export a React component for it to be valid. Please make sure this file exports a React component:\n\n${
- context.fileName
- }`,
+ `A page component must export a React component for it to be valid. Please make sure this file exports a React component:\n\n${context.fileName}`,
level: `ERROR`,
},
// invalid or deprecated APIs
@@ -180,13 +162,9 @@ const errorMap = {
text: context =>
[
stripIndent(`
- Your plugins must export known APIs from their gatsby-${
- context.exportType
- }.js.
+ Your plugins must export known APIs from their gatsby-${context.exportType}.js.
- See https://www.gatsbyjs.org/docs/${
- context.exportType
- }-apis/ for the list of Gatsby ${context.exportType} APIs.
+ See https://www.gatsbyjs.org/docs/${context.exportType}-apis/ for the list of Gatsby ${context.exportType} APIs.
`),
]
.concat([``].concat(context.errors))
diff --git a/packages/gatsby-dev-cli/src/utils/check-deps-changes.js b/packages/gatsby-dev-cli/src/utils/check-deps-changes.js
index af683e56a3a77..b2fb3b1253fab 100644
--- a/packages/gatsby-dev-cli/src/utils/check-deps-changes.js
+++ b/packages/gatsby-dev-cli/src/utils/check-deps-changes.js
@@ -147,9 +147,7 @@ exports.checkDepsChanges = async ({
// changes - they will be covered
if (!monoRepoPackages.includes(key)) {
acc.push(
- ` - '${key}' changed version from ${
- localPKGjson.dependencies[key]
- } to ${monorepoPKGjson.dependencies[key]}`
+ ` - '${key}' changed version from ${localPKGjson.dependencies[key]} to ${monorepoPKGjson.dependencies[key]}`
)
needPublishing = true
}
diff --git a/packages/gatsby-image/src/__tests__/index.js b/packages/gatsby-image/src/__tests__/index.js
index eeb40f77d8c28..78809a8485a9e 100644
--- a/packages/gatsby-image/src/__tests__/index.js
+++ b/packages/gatsby-image/src/__tests__/index.js
@@ -78,8 +78,8 @@ const setup = (
alt={`Alt text for the image`}
crossOrigin={`anonymous`}
draggable={true}
- {...fluid && { fluid: fluidShapeMock }}
- {...!fluid && { fixed: fixedShapeMock }}
+ {...(fluid && { fluid: fluidShapeMock })}
+ {...(!fluid && { fixed: fixedShapeMock })}
onLoad={onLoad}
onError={onError}
itemProp={`item-prop-for-the-image`}
@@ -105,8 +105,8 @@ const setupImages = (
title={`Title for the image`}
alt={`Alt text for the image`}
crossOrigin={`anonymous`}
- {...fluidImages && { fluid: fluidImagesShapeMock }}
- {...!fluidImages && { fixed: fixedImagesShapeMock }}
+ {...(fluidImages && { fluid: fluidImagesShapeMock })}
+ {...(!fluidImages && { fixed: fixedImagesShapeMock })}
onLoad={onLoad}
onError={onError}
itemProp={`item-prop-for-the-image`}
diff --git a/packages/gatsby-image/src/index.js b/packages/gatsby-image/src/index.js
index 0800af869e9dd..eae58ccec9756 100644
--- a/packages/gatsby-image/src/index.js
+++ b/packages/gatsby-image/src/index.js
@@ -142,9 +142,7 @@ function groupByMedia(imageVariants) {
if (without.length > 1 && process.env.NODE_ENV !== `production`) {
console.warn(
- `We've found ${
- without.length
- } sources without a media property. They might be ignored by the browser, see: https://www.gatsbyjs.org/packages/gatsby-image/#art-directing-multiple-images`
+ `We've found ${without.length} sources without a media property. They might be ignored by the browser, see: https://www.gatsbyjs.org/packages/gatsby-image/#art-directing-multiple-images`
)
}
diff --git a/packages/gatsby-plugin-google-analytics/src/gatsby-ssr.js b/packages/gatsby-plugin-google-analytics/src/gatsby-ssr.js
index 81ba91789b2d4..ac5e09955ef17 100644
--- a/packages/gatsby-plugin-google-analytics/src/gatsby-ssr.js
+++ b/packages/gatsby-plugin-google-analytics/src/gatsby-ssr.js
@@ -72,9 +72,7 @@ export const onRenderBody = (
${
typeof pluginOptions.anonymize !== `undefined` &&
pluginOptions.anonymize === true
- ? `function gaOptout(){document.cookie=disableStr+'=true; expires=Thu, 31 Dec 2099 23:59:59 UTC;path=/',window[disableStr]=!0}var gaProperty='${
- pluginOptions.trackingId
- }',disableStr='ga-disable-'+gaProperty;document.cookie.indexOf(disableStr+'=true')>-1&&(window[disableStr]=!0);`
+ ? `function gaOptout(){document.cookie=disableStr+'=true; expires=Thu, 31 Dec 2099 23:59:59 UTC;path=/',window[disableStr]=!0}var gaProperty='${pluginOptions.trackingId}',disableStr='ga-disable-'+gaProperty;document.cookie.indexOf(disableStr+'=true')>-1&&(window[disableStr]=!0);`
: ``
}
if(${
@@ -121,9 +119,7 @@ export const onRenderBody = (
}
${Object.keys(knownOptions.general).reduce((gaSetCommands, option) => {
if (typeof pluginOptions[option] === knownOptions.general[option]) {
- gaSetCommands += `ga('set', '${option}', '${
- pluginOptions[option]
- }');\n`
+ gaSetCommands += `ga('set', '${option}', '${pluginOptions[option]}');\n`
}
return gaSetCommands
}, ``)}
diff --git a/packages/gatsby-plugin-google-tagmanager/src/__tests__/gatsby-ssr.js b/packages/gatsby-plugin-google-tagmanager/src/__tests__/gatsby-ssr.js
index cf167e6d8eb66..fb84a082f5efe 100644
--- a/packages/gatsby-plugin-google-tagmanager/src/__tests__/gatsby-ssr.js
+++ b/packages/gatsby-plugin-google-tagmanager/src/__tests__/gatsby-ssr.js
@@ -81,9 +81,7 @@ describe(`gatsby-plugin-google-tagmanager`, () => {
},
}
- const datalayerFuncAsString = oneLine`${
- pluginOptions.defaultDataLayer.value
- }`
+ const datalayerFuncAsString = oneLine`${pluginOptions.defaultDataLayer.value}`
onRenderBody(mocks, pluginOptions)
const [headConfig] = mocks.setHeadComponents.mock.calls[0][0]
diff --git a/packages/gatsby-plugin-mdx/utils/gen-mdx.js b/packages/gatsby-plugin-mdx/utils/gen-mdx.js
index 77d6675e4d781..77f030fcb28c3 100644
--- a/packages/gatsby-plugin-mdx/utils/gen-mdx.js
+++ b/packages/gatsby-plugin-mdx/utils/gen-mdx.js
@@ -45,9 +45,7 @@ module.exports = async function genMDX(
) {
const pathPrefixCacheStr = pathPrefix || ``
const payloadCacheKey = node =>
- `gatsby-plugin-mdx-entire-payload-${
- node.internal.contentDigest
- }-${pathPrefixCacheStr}`
+ `gatsby-plugin-mdx-entire-payload-${node.internal.contentDigest}-${pathPrefixCacheStr}`
if (!forceDisableCache) {
const cachedPayload = await cache.get(payloadCacheKey(node))
diff --git a/packages/gatsby-plugin-mdx/utils/render-html.js b/packages/gatsby-plugin-mdx/utils/render-html.js
index db0329ac70142..51abbf8e00df4 100644
--- a/packages/gatsby-plugin-mdx/utils/render-html.js
+++ b/packages/gatsby-plugin-mdx/utils/render-html.js
@@ -91,9 +91,7 @@ class MdxHtmlBuilderWebpackPlugin {
if (typeof render !== `function`) {
throw new Error(
- `Export from '${
- self.entry
- }' must be a function that returns a htmlString value.`
+ `Export from '${self.entry}' must be a function that returns a htmlString value.`
)
}
// use function here
diff --git a/packages/gatsby-plugin-sharp/src/index.js b/packages/gatsby-plugin-sharp/src/index.js
index 5ce9a154f94ae..fd54db62f42d8 100644
--- a/packages/gatsby-plugin-sharp/src/index.js
+++ b/packages/gatsby-plugin-sharp/src/index.js
@@ -298,9 +298,7 @@ async function fluid({ file, args = {}, reporter, cache }) {
if (options[fixedDimension] < 1) {
throw new Error(
- `${fixedDimension} has to be a positive int larger than zero (> 0), now it's ${
- options[fixedDimension]
- }`
+ `${fixedDimension} has to be a positive int larger than zero (> 0), now it's ${options[fixedDimension]}`
)
}
@@ -470,13 +468,9 @@ async function fixed({ file, args = {}, reporter, cache }) {
filteredSizes.push(dimensions[fixedDimension])
console.warn(
`
- The requested ${fixedDimension} "${
- options[fixedDimension]
- }px" for a resolutions field for
+ The requested ${fixedDimension} "${options[fixedDimension]}px" for a resolutions field for
the file ${file.absolutePath}
- was larger than the actual image ${fixedDimension} of ${
- dimensions[fixedDimension]
- }px!
+ was larger than the actual image ${fixedDimension} of ${dimensions[fixedDimension]}px!
If possible, replace the current image with a larger one.
`
)
diff --git a/packages/gatsby-remark-images-contentful/src/index.js b/packages/gatsby-remark-images-contentful/src/index.js
index 744e2878b1d18..a0f70c6b86dba 100644
--- a/packages/gatsby-remark-images-contentful/src/index.js
+++ b/packages/gatsby-remark-images-contentful/src/index.js
@@ -142,15 +142,11 @@ module.exports = async (
let rawHTML = `
${imageTag}
diff --git a/packages/gatsby-remark-images/src/__tests__/gastby-browser.js b/packages/gatsby-remark-images/src/__tests__/gastby-browser.js
index bd50d5c931223..d1f729ed33c3a 100644
--- a/packages/gatsby-remark-images/src/__tests__/gastby-browser.js
+++ b/packages/gatsby-remark-images/src/__tests__/gastby-browser.js
@@ -17,9 +17,7 @@ const createImageElement = () => {
return global.document.querySelector(`.${imageClass}`)
}
-const defaultImageBoxShadowStyle = `inset 0px 0px 0px 400px ${
- DEFAULT_OPTIONS.backgroundColor
-}`
+const defaultImageBoxShadowStyle = `inset 0px 0px 0px 400px ${DEFAULT_OPTIONS.backgroundColor}`
test(`it sets the default box-shadow on img element`, () => {
const pluginOptions = {}
diff --git a/packages/gatsby-remark-images/src/gatsby-browser.js b/packages/gatsby-remark-images/src/gatsby-browser.js
index 113bf7f32d3e8..1e9e734a62afe 100644
--- a/packages/gatsby-remark-images/src/gatsby-browser.js
+++ b/packages/gatsby-remark-images/src/gatsby-browser.js
@@ -30,9 +30,7 @@ exports.onRouteUpdate = (apiCallbackContext, pluginOptions) => {
backgroundElement.style.opacity = 0
imageElement.style.opacity = 1
imageElement.style.color = `inherit`
- imageElement.style.boxShadow = `inset 0px 0px 0px 400px ${
- options.backgroundColor
- }`
+ imageElement.style.boxShadow = `inset 0px 0px 0px 400px ${options.backgroundColor}`
imageElement.removeEventListener(`load`, onImageLoad)
imageElement.removeEventListener(`error`, onImageComplete)
}
diff --git a/packages/gatsby-remark-prismjs/src/directives.js b/packages/gatsby-remark-prismjs/src/directives.js
index cc98b26e652db..c07f8699bd206 100644
--- a/packages/gatsby-remark-prismjs/src/directives.js
+++ b/packages/gatsby-remark-prismjs/src/directives.js
@@ -45,11 +45,7 @@ const stripComment = line =>
*/
line.replace(
new RegExp(
- `\\s*(${HIGHLIGHTED_JSX_COMMENT_START}|${PRISMJS_COMMENT_OPENING_SPAN_TAG}${
- COMMENT_START.source
- })\\s*${DIRECTIVE.source}\\s*(${HIGHLIGHTED_JSX_COMMENT_END}|${
- COMMENT_END.source
- }${PRISMJS_COMMENT_CLOSING_SPAN_TAG})`
+ `\\s*(${HIGHLIGHTED_JSX_COMMENT_START}|${PRISMJS_COMMENT_OPENING_SPAN_TAG}${COMMENT_START.source})\\s*${DIRECTIVE.source}\\s*(${HIGHLIGHTED_JSX_COMMENT_END}|${COMMENT_END.source}${PRISMJS_COMMENT_CLOSING_SPAN_TAG})`
),
``
)
diff --git a/packages/gatsby-source-contentful/src/extend-node-type.js b/packages/gatsby-source-contentful/src/extend-node-type.js
index c7fb755fe33c8..a764dba1e3bd6 100644
--- a/packages/gatsby-source-contentful/src/extend-node-type.js
+++ b/packages/gatsby-source-contentful/src/extend-node-type.js
@@ -204,9 +204,7 @@ const resolveFluid = (image, options) => {
// If the users didn't set a default sizes, we'll make one.
if (!options.sizes) {
- options.sizes = `(max-width: ${options.maxWidth}px) 100vw, ${
- options.maxWidth
- }px`
+ options.sizes = `(max-width: ${options.maxWidth}px) 100vw, ${options.maxWidth}px`
}
// Create sizes (in width) for the image. If the max width of the container
diff --git a/packages/gatsby-source-filesystem/src/extend-file-node.js b/packages/gatsby-source-filesystem/src/extend-file-node.js
index 52991f4d1616f..d3290f96519ae 100644
--- a/packages/gatsby-source-filesystem/src/extend-file-node.js
+++ b/packages/gatsby-source-filesystem/src/extend-file-node.js
@@ -14,9 +14,7 @@ module.exports = ({ type, getNodeAndSavePathDependency, pathPrefix = `` }) => {
description: `Copy file to static directory and return public url to it`,
resolve: (file, fieldArgs, context) => {
const details = getNodeAndSavePathDependency(file.id, context.path)
- const fileName = `${file.name}-${file.internal.contentDigest}${
- details.ext
- }`
+ const fileName = `${file.name}-${file.internal.contentDigest}${details.ext}`
const publicPath = path.join(
process.cwd(),
@@ -29,9 +27,7 @@ module.exports = ({ type, getNodeAndSavePathDependency, pathPrefix = `` }) => {
fs.copy(details.absolutePath, publicPath, err => {
if (err) {
console.error(
- `error copying file from ${
- details.absolutePath
- } to ${publicPath}`,
+ `error copying file from ${details.absolutePath} to ${publicPath}`,
err
)
}
diff --git a/packages/gatsby-source-mongodb/src/gatsby-node.js b/packages/gatsby-source-mongodb/src/gatsby-node.js
index 61f3a8f763420..3f810da892de6 100644
--- a/packages/gatsby-source-mongodb/src/gatsby-node.js
+++ b/packages/gatsby-source-mongodb/src/gatsby-node.js
@@ -25,9 +25,7 @@ exports.sourceNodes = (
const clientOptions = pluginOptions.clientOptions || { useNewUrlParser: true }
const connectionURL = pluginOptions.connectionString
? `${pluginOptions.connectionString}/${dbName}${connectionExtraParams}`
- : `mongodb://${authUrlPart}${serverOptions.address}:${
- serverOptions.port
- }/${dbName}${connectionExtraParams}`
+ : `mongodb://${authUrlPart}${serverOptions.address}:${serverOptions.port}/${dbName}${connectionExtraParams}`
const mongoClient = new MongoClient(connectionURL, clientOptions)
return mongoClient
.connect()
diff --git a/packages/gatsby-transformer-react-docgen/src/on-node-create.js b/packages/gatsby-transformer-react-docgen/src/on-node-create.js
index 5c1ed00f5775e..197197860956d 100644
--- a/packages/gatsby-transformer-react-docgen/src/on-node-create.js
+++ b/packages/gatsby-transformer-react-docgen/src/on-node-create.js
@@ -110,9 +110,7 @@ export default async function onCreateNode(
components = parseMetadata(content, node, pluginOptions)
} catch (err) {
reporter.error(
- `There was a problem parsing component metadata for file: "${
- node.relativePath
- }"`,
+ `There was a problem parsing component metadata for file: "${node.relativePath}"`,
err
)
return
diff --git a/packages/gatsby-transformer-remark/src/extend-node-type.js b/packages/gatsby-transformer-remark/src/extend-node-type.js
index 6d5e6c26847ee..f462779871bf6 100644
--- a/packages/gatsby-transformer-remark/src/extend-node-type.js
+++ b/packages/gatsby-transformer-remark/src/extend-node-type.js
@@ -27,21 +27,13 @@ let fileNodes
let pluginsCacheStr = ``
let pathPrefixCacheStr = ``
const astCacheKey = node =>
- `transformer-remark-markdown-ast-${
- node.internal.contentDigest
- }-${pluginsCacheStr}-${pathPrefixCacheStr}`
+ `transformer-remark-markdown-ast-${node.internal.contentDigest}-${pluginsCacheStr}-${pathPrefixCacheStr}`
const htmlCacheKey = node =>
- `transformer-remark-markdown-html-${
- node.internal.contentDigest
- }-${pluginsCacheStr}-${pathPrefixCacheStr}`
+ `transformer-remark-markdown-html-${node.internal.contentDigest}-${pluginsCacheStr}-${pathPrefixCacheStr}`
const htmlAstCacheKey = node =>
- `transformer-remark-markdown-html-ast-${
- node.internal.contentDigest
- }-${pluginsCacheStr}-${pathPrefixCacheStr}`
+ `transformer-remark-markdown-html-ast-${node.internal.contentDigest}-${pluginsCacheStr}-${pathPrefixCacheStr}`
const headingsCacheKey = node =>
- `transformer-remark-markdown-headings-${
- node.internal.contentDigest
- }-${pluginsCacheStr}-${pathPrefixCacheStr}`
+ `transformer-remark-markdown-headings-${node.internal.contentDigest}-${pluginsCacheStr}-${pathPrefixCacheStr}`
const tableOfContentsCacheKey = (node, appliedTocOptions) =>
`transformer-remark-markdown-toc-${
node.internal.contentDigest
@@ -289,9 +281,7 @@ module.exports = (
undefined
) {
console.warn(
- `Skipping TableOfContents. Field '${
- appliedTocOptions.pathToSlugField
- }' missing from markdown node`
+ `Skipping TableOfContents. Field '${appliedTocOptions.pathToSlugField}' missing from markdown node`
)
return null
}
diff --git a/packages/gatsby-transformer-sharp/src/extend-node-type.js b/packages/gatsby-transformer-sharp/src/extend-node-type.js
index 4867f02fcbca0..81eaca654ddb1 100644
--- a/packages/gatsby-transformer-sharp/src/extend-node-type.js
+++ b/packages/gatsby-transformer-sharp/src/extend-node-type.js
@@ -408,9 +408,7 @@ module.exports = ({
const dimensions = imageSize.sync(
toArray(fs.readFileSync(details.absolutePath))
)
- const imageName = `${details.name}-${image.internal.contentDigest}${
- details.ext
- }`
+ const imageName = `${details.name}-${image.internal.contentDigest}${details.ext}`
const publicPath = path.join(
process.cwd(),
`public`,
@@ -422,9 +420,7 @@ module.exports = ({
fsExtra.copy(details.absolutePath, publicPath, err => {
if (err) {
console.error(
- `error copying file from ${
- details.absolutePath
- } to ${publicPath}`,
+ `error copying file from ${details.absolutePath} to ${publicPath}`,
err
)
}
diff --git a/packages/gatsby-transformer-sqip/src/generate-sqip.js b/packages/gatsby-transformer-sqip/src/generate-sqip.js
index 6c851e085751a..2be5e698b9c41 100644
--- a/packages/gatsby-transformer-sqip/src/generate-sqip.js
+++ b/packages/gatsby-transformer-sqip/src/generate-sqip.js
@@ -96,9 +96,7 @@ module.exports = async function generateSqip(options) {
await cache.set(cacheKey, primitiveData)
} catch (err) {
- err.message = `Unable to generate SQIP for ${name} (${contentDigest}-${optionsHash})\n${
- err.message
- }`
+ err.message = `Unable to generate SQIP for ${name} (${contentDigest}-${optionsHash})\n${err.message}`
throw err
}
diff --git a/packages/gatsby/cache-dir/production-app.js b/packages/gatsby/cache-dir/production-app.js
index 88c0353198cf4..b786ff39c4f96 100644
--- a/packages/gatsby/cache-dir/production-app.js
+++ b/packages/gatsby/cache-dir/production-app.js
@@ -120,9 +120,7 @@ apiRunnerAsync(`onClientEntry`).then(() => {
publicLoader.loadPage(browserLoc.pathname).then(page => {
if (!page || page.status === `error`) {
throw new Error(
- `page resources for ${
- browserLoc.pathname
- } not found. Not rendering React`
+ `page resources for ${browserLoc.pathname} not found. Not rendering React`
)
}
const Root = () => (
diff --git a/packages/gatsby/src/bootstrap/load-plugins/validate.js b/packages/gatsby/src/bootstrap/load-plugins/validate.js
index ab3eb6cae9bd6..cb933c4d98279 100644
--- a/packages/gatsby/src/bootstrap/load-plugins/validate.js
+++ b/packages/gatsby/src/bootstrap/load-plugins/validate.js
@@ -61,15 +61,11 @@ const getErrorContext = (badExports, exportType, currentAPIs, latestAPIs) => {
if (isDefaultPlugin) {
errors.push(
- `- Your local gatsby-${exportType}.js is using the API "${
- entry.exportName
- }" which ${message}.`
+ `- Your local gatsby-${exportType}.js is using the API "${entry.exportName}" which ${message}.`
)
} else {
errors.push(
- `- The plugin ${entry.pluginName}@${
- entry.pluginVersion
- } is using the API "${entry.exportName}" which ${message}.`
+ `- The plugin ${entry.pluginName}@${entry.pluginVersion} is using the API "${entry.exportName}" which ${message}.`
)
}
@@ -215,9 +211,7 @@ const handleMultipleReplaceRenderers = ({ flattenedPlugins }) => {
flattenedPlugins.forEach((fp, i) => {
if (ignorable.includes(fp.name)) {
messages.push(
- `Duplicate replaceRenderer found, skipping gatsby-ssr.js for plugin: ${
- fp.name
- }`
+ `Duplicate replaceRenderer found, skipping gatsby-ssr.js for plugin: ${fp.name}`
)
flattenedPlugins[i].skipSSR = true
}
diff --git a/packages/gatsby/src/commands/develop.js b/packages/gatsby/src/commands/develop.js
index 687dc49a0e814..2bfec60bd9ac4 100644
--- a/packages/gatsby/src/commands/develop.js
+++ b/packages/gatsby/src/commands/develop.js
@@ -243,9 +243,7 @@ async function startServer(program, { activity }) {
if (response) {
res.writeHead(response.statusCode, response.headers)
} else {
- const message = `Error when trying to proxy request "${
- req.originalUrl
- }" to "${proxiedUrl}"`
+ const message = `Error when trying to proxy request "${req.originalUrl}" to "${proxiedUrl}"`
report.error(message, err)
res.sendStatus(500)
@@ -292,9 +290,7 @@ async function startServer(program, { activity }) {
if (err.code === `EADDRINUSE`) {
// eslint-disable-next-line max-len
report.panic(
- `Unable to start Gatsby on port ${
- program.port
- } as there's already a process listening on that port.`
+ `Unable to start Gatsby on port ${program.port} as there's already a process listening on that port.`
)
return
}
@@ -524,9 +520,7 @@ module.exports = async (program: any) => {
chalk.yellow(`is deprecated. Please use`),
chalk.cyan(fixMap[api].newName),
chalk.yellow(
- `instead. For migration instructions, see ${
- fixMap[api].docsLink
- }\nCheck the following files:`
+ `instead. For migration instructions, see ${fixMap[api].docsLink}\nCheck the following files:`
)
)
console.log()
diff --git a/packages/gatsby/src/internal-plugins/dev-404-page/raw_dev-404-page.js b/packages/gatsby/src/internal-plugins/dev-404-page/raw_dev-404-page.js
index 40045516c59b9..faa6a28fc4f49 100644
--- a/packages/gatsby/src/internal-plugins/dev-404-page/raw_dev-404-page.js
+++ b/packages/gatsby/src/internal-plugins/dev-404-page/raw_dev-404-page.js
@@ -92,9 +92,7 @@ class Dev404Page extends React.Component {
Pages (
{this.state.pagePaths.length != this.state.initPagePaths.length
- ? `${this.state.pagePaths.length}/${
- this.state.initPagePaths.length
- }`
+ ? `${this.state.pagePaths.length}/${this.state.initPagePaths.length}`
: this.state.initPagePaths.length}
)
diff --git a/packages/gatsby/src/query/query-watcher.js b/packages/gatsby/src/query/query-watcher.js
index 8dce7707081f0..73755ed6c0e01 100644
--- a/packages/gatsby/src/query/query-watcher.js
+++ b/packages/gatsby/src/query/query-watcher.js
@@ -172,9 +172,7 @@ const clearInactiveComponents = () => {
components.forEach(component => {
if (!activeTemplates.has(component.componentPath)) {
debug(
- `${
- component.componentPath
- } component was removed because it isn't used by any page`
+ `${component.componentPath} component was removed because it isn't used by any page`
)
store.dispatch({
type: `REMOVE_TEMPLATE_COMPONENT`,
diff --git a/packages/gatsby/src/redux/actions/public.js b/packages/gatsby/src/redux/actions/public.js
index 74e956253d698..15ec401fcb768 100644
--- a/packages/gatsby/src/redux/actions/public.js
+++ b/packages/gatsby/src/redux/actions/public.js
@@ -402,9 +402,7 @@ ${reservedFields.map(f => ` * "${f}"`).join(`\n`)}
if (store.getState().pages.has(alternateSlashPath)) {
report.warn(
- `Attempting to create page "${
- page.path
- }", but page "${alternateSlashPath}" already exists. This could lead to non-deterministic routing behavior`
+ `Attempting to create page "${page.path}", but page "${alternateSlashPath}" already exists. This could lead to non-deterministic routing behavior`
)
}
diff --git a/packages/gatsby/src/schema/infer/add-inferred-fields.js b/packages/gatsby/src/schema/infer/add-inferred-fields.js
index 206ebe7c8375e..91683463497dc 100644
--- a/packages/gatsby/src/schema/infer/add-inferred-fields.js
+++ b/packages/gatsby/src/schema/infer/add-inferred-fields.js
@@ -70,11 +70,7 @@ const addInferredFieldsImpl = ({
.map(field => `\`${field.unsanitizedKey}\``)
.join(`, `)
report.warn(
- `Multiple node fields resolve to the same GraphQL field \`${prefix}.${
- field.key
- }\` - [${possibleFieldsNames}]. Gatsby will use \`${
- field.unsanitizedKey
- }\`.`
+ `Multiple node fields resolve to the same GraphQL field \`${prefix}.${field.key}\` - [${possibleFieldsNames}]. Gatsby will use \`${field.unsanitizedKey}\`.`
)
selectedField = field
} else {
diff --git a/packages/gatsby/src/utils/api-runner-node.js b/packages/gatsby/src/utils/api-runner-node.js
index 28910e9eb13c4..cd99a6d236d88 100644
--- a/packages/gatsby/src/utils/api-runner-node.js
+++ b/packages/gatsby/src/utils/api-runner-node.js
@@ -274,9 +274,7 @@ module.exports = async (api, args = {}, pluginSource) =>
if (api === `setFieldsOnGraphQLNodeType`) {
id = `${api}${apiRunInstance.startTime}${args.type.name}${args.traceId}`
} else if (api === `onCreateNode`) {
- id = `${api}${apiRunInstance.startTime}${
- args.node.internal.contentDigest
- }${args.traceId}`
+ id = `${api}${apiRunInstance.startTime}${args.node.internal.contentDigest}${args.traceId}`
} else if (api === `preprocessSource`) {
id = `${api}${apiRunInstance.startTime}${args.filename}${args.traceId}`
} else if (api === `onCreatePage`) {
@@ -286,9 +284,7 @@ module.exports = async (api, args = {}, pluginSource) =>
// `parentSpan` field that can be quite large. So we omit it
// before calling stringify
const argsJson = JSON.stringify(_.omit(args, `parentSpan`))
- id = `${api}|${apiRunInstance.startTime}|${
- apiRunInstance.traceId
- }|${argsJson}`
+ id = `${api}|${apiRunInstance.startTime}|${apiRunInstance.traceId}|${argsJson}`
}
apiRunInstance.id = id
diff --git a/packages/gatsby/src/utils/websocket-manager.js b/packages/gatsby/src/utils/websocket-manager.js
index e24497dcbda34..6f04b1d49f5a7 100644
--- a/packages/gatsby/src/utils/websocket-manager.js
+++ b/packages/gatsby/src/utils/websocket-manager.js
@@ -96,9 +96,7 @@ const getCachedStaticQueryResults = (
const fileResult = fs.readFileSync(filePath, `utf-8`)
if (fileResult === `undefined`) {
console.log(
- `Error loading a result for the StaticQuery in "${
- staticQueryComponent.componentPath
- }". Query was not run and no cached result was found.`
+ `Error loading a result for the StaticQuery in "${staticQueryComponent.componentPath}". Query was not run and no cached result was found.`
)
return
}
diff --git a/peril/rules/merge-on-green.ts b/peril/rules/merge-on-green.ts
index bd68d55f4da34..fbcf6a0c60488 100644
--- a/peril/rules/merge-on-green.ts
+++ b/peril/rules/merge-on-green.ts
@@ -58,9 +58,7 @@ export const mergeOnGreen = async () => {
// search returns first 100 results, we are not handling pagination right now
// because it's unlikely to get more 100 results for given sha
const results = await danger.github.api.search.issues({
- q: `${danger.github.check_suite.head_sha} is:open repo:${
- danger.github.repository.owner.login
- }/${danger.github.repository.name}`,
+ q: `${danger.github.check_suite.head_sha} is:open repo:${danger.github.repository.owner.login}/${danger.github.repository.name}`,
})
let i = 0
@@ -79,9 +77,7 @@ export const mergeOnGreen = async () => {
// search returns first 100 results, we are not handling pagination right now
// because it's unlikely to get more 100 results for given sha
const results = await danger.github.api.search.issues({
- q: `${danger.github.commit.sha} is:open repo:${
- danger.github.repository.owner.login
- }/${danger.github.repository.name}`,
+ q: `${danger.github.commit.sha} is:open repo:${danger.github.repository.owner.login}/${danger.github.repository.name}`,
})
let i = 0
diff --git a/peril/rules/validate-yaml.ts b/peril/rules/validate-yaml.ts
index 5dd486e6712e2..e4e417ae4224a 100644
--- a/peril/rules/validate-yaml.ts
+++ b/peril/rules/validate-yaml.ts
@@ -205,9 +205,7 @@ export const validateYaml = async () => {
)
} catch (e) {
warn(
- `## "docs/categories.yml" is not valid YAML file:\n\n\`\`\`${
- e.message
- }\n\`\`\``
+ `## "docs/categories.yml" is not valid YAML file:\n\n\`\`\`${e.message}\n\`\`\``
)
return
}
diff --git a/www/gatsby-node.js b/www/gatsby-node.js
index 71c87861e0c82..a8b8dfec1ba94 100644
--- a/www/gatsby-node.js
+++ b/www/gatsby-node.js
@@ -573,9 +573,7 @@ exports.createPages = ({ graphql, actions, reporter }) => {
return null
} else if (!_.get(edge, `node.fields.hasScreenshot`)) {
reporter.warn(
- `Starter showcase entry "${
- edge.node.repo
- }" seems offline. Skipping.`
+ `Starter showcase entry "${edge.node.repo}" seems offline. Skipping.`
)
return null
} else {
@@ -626,9 +624,7 @@ exports.createPages = ({ graphql, actions, reporter }) => {
if (!edge.node.fields.slug) return
if (!edge.node.fields.hasScreenshot) {
reporter.warn(
- `Site showcase entry "${
- edge.node.main_url
- }" seems offline. Skipping.`
+ `Site showcase entry "${edge.node.main_url}" seems offline. Skipping.`
)
return
}
@@ -1020,9 +1016,7 @@ exports.onCreateNode = ({ node, actions, getNode, reporter }) => {
if (!validTypes[node.type]) {
throw new Error(
- `Creators must have a type of “individual”, “agency”, or “company”, but invalid type “${
- node.type
- }” was provided for ${node.name}.`
+ `Creators must have a type of “individual”, “agency”, or “company”, but invalid type “${node.type}” was provided for ${node.name}.`
)
}
slug = `/creators/${validTypes[node.type]}/${slugify(node.name, {
diff --git a/www/src/assets/guidelines/manually-tracked.svg b/www/src/assets/guidelines/manually-tracked.svg
index d7ced649e1c9c..4dfecb56d0834 100644
--- a/www/src/assets/guidelines/manually-tracked.svg
+++ b/www/src/assets/guidelines/manually-tracked.svg
@@ -1,4 +1,4 @@
diff --git a/www/src/assets/guidelines/partnership-lockups.svg b/www/src/assets/guidelines/partnership-lockups.svg
index 0f8bb2928d696..9b8f6ebf08ec0 100644
--- a/www/src/assets/guidelines/partnership-lockups.svg
+++ b/www/src/assets/guidelines/partnership-lockups.svg
@@ -11,9 +11,9 @@
-
-
-
+
+
+
diff --git a/www/src/assets/icons/plugins-ecosystem.svg b/www/src/assets/icons/plugins-ecosystem.svg
index fbd688ed0e2ce..8b40bc5c60805 100644
--- a/www/src/assets/icons/plugins-ecosystem.svg
+++ b/www/src/assets/icons/plugins-ecosystem.svg
@@ -1,7 +1,7 @@
diff --git a/www/src/components/sidebar/accordion.js b/www/src/components/sidebar/accordion.js
index dc7850d2aece5..edc84e152cab9 100644
--- a/www/src/components/sidebar/accordion.js
+++ b/www/src/components/sidebar/accordion.js
@@ -96,9 +96,7 @@ class Accordion extends React.Component {
? presets.activeSectionBackground
: false,
position: `relative`,
- transition: `all ${transition.speed.fast} ${
- transition.curve.default
- }`,
+ transition: `all ${transition.speed.fast} ${transition.curve.default}`,
marginTop:
item.level === 0 && disableAccordions && !isSingle
? `${space[4]} !important`
diff --git a/www/src/components/sidebar/section-title.js b/www/src/components/sidebar/section-title.js
index 46ec9859cace3..461447c5a81fe 100644
--- a/www/src/components/sidebar/section-title.js
+++ b/www/src/components/sidebar/section-title.js
@@ -34,9 +34,7 @@ const Chevron = ({ isExpanded }) => (
marginLeft: `auto`,
marginRight: `auto`,
transform: isExpanded ? `rotate(180deg)` : `rotate(270deg)`,
- transition: `transform ${transition.speed.fast} ${
- transition.curve.default
- }`,
+ transition: `transform ${transition.speed.fast} ${transition.curve.default}`,
}}
/>
diff --git a/www/src/components/sidebar/sticky-responsive-sidebar.js b/www/src/components/sidebar/sticky-responsive-sidebar.js
index 7e484538d7b11..3bf132b9afb72 100644
--- a/www/src/components/sidebar/sticky-responsive-sidebar.js
+++ b/www/src/components/sidebar/sticky-responsive-sidebar.js
@@ -87,9 +87,7 @@ class StickyResponsiveSidebar extends Component {
size={15}
cssProps={{
transform: `translate(${iconOffset}px, 5px) rotate(90deg)`,
- transition: `transform ${transition.speed.fast} ${
- transition.curve.default
- }`,
+ transition: `transform ${transition.speed.fast} ${transition.curve.default}`,
}}
/>
@@ -136,9 +132,7 @@ const styles = {
},
sidebar: {
height: `100%`,
- transition: `transform ${transition.speed.slow} ${
- transition.curve.default
- }`,
+ transition: `transform ${transition.speed.slow} ${transition.curve.default}`,
boxShadow: shadows.dialog,
[mediaQueries.md]: {
transform: `none !important`,
diff --git a/www/src/pages/plugins.js b/www/src/pages/plugins.js
index 51d2a4720fbff..8b756a1c99a79 100644
--- a/www/src/pages/plugins.js
+++ b/www/src/pages/plugins.js
@@ -25,9 +25,7 @@ class Plugins extends Component {
alignItems: `center`,
display: `flex`,
flexDirection: `column`,
- minHeight: `calc(100vh - (${sizes.headerHeight} + ${
- sizes.bannerHeight
- }))`,
+ minHeight: `calc(100vh - (${sizes.headerHeight} + ${sizes.bannerHeight}))`,
}}
>
{post.frontmatter.title}
)}
{post.frontmatter.image && (
)}
@@ -152,9 +146,7 @@ class BlogPostTemplate extends React.Component {
diff --git a/www/src/templates/template-contributor-page.js b/www/src/templates/template-contributor-page.js
index bb3d067034656..3d6224add3b36 100644
--- a/www/src/templates/template-contributor-page.js
+++ b/www/src/templates/template-contributor-page.js
@@ -30,17 +30,13 @@ class ContributorPageTemplate extends React.Component {
{contributor.avatar && (
)}
{contributor.avatar && (
)}
diff --git a/www/src/templates/template-creator-details.js b/www/src/templates/template-creator-details.js
index e59905e6f6fed..97def8689a23e 100644
--- a/www/src/templates/template-creator-details.js
+++ b/www/src/templates/template-creator-details.js
@@ -245,9 +245,7 @@ class CreatorTemplate extends Component {
marginBottom: space[6],
borderBottom: `none`,
lineHeight: 0,
- transition: `all ${transition.speed.default} ${
- transition.curve.default
- }`,
+ transition: `all ${transition.speed.default} ${transition.curve.default}`,
},
}}
to={site.node.fields.slug}
diff --git a/www/src/utils/sidebar/create-link.js b/www/src/utils/sidebar/create-link.js
index 86a6bbad7c320..5a2c6e50b113d 100644
--- a/www/src/utils/sidebar/create-link.js
+++ b/www/src/utils/sidebar/create-link.js
@@ -61,9 +61,7 @@ const createLink = ({
top: bulletOffsetTop,
height: bulletSize,
position: `absolute`,
- transition: `all ${transition.speed.default} ${
- transition.curve.default
- }`,
+ transition: `all ${transition.speed.default} ${transition.curve.default}`,
width: bulletSize,
},
"&:before": {
diff --git a/www/src/views/shared/styles.js b/www/src/views/shared/styles.js
index a54ad00079a21..62aabb2b78ee8 100644
--- a/www/src/views/shared/styles.js
+++ b/www/src/views/shared/styles.js
@@ -26,9 +26,7 @@ const styles = {
},
withTitleHover: {
"& .title": {
- transition: `box-shadow ${transition.speed.slow} ${
- transition.curve.default
- }, transform ${transition.speed.slow} ${transition.curve.default}`,
+ transition: `box-shadow ${transition.speed.slow} ${transition.curve.default}, transform ${transition.speed.slow} ${transition.curve.default}`,
},
"&:hover .title": {
boxShadow: `inset 0 -1px 0px 0px ${colors.lavender}`,
@@ -81,11 +79,7 @@ const styles = {
paddingLeft: space[6],
overflow: `hidden`,
fontFamily: fonts.header,
- transition: `width ${transition.speed.default} ${
- transition.curve.default
- }, background-color ${transition.speed.default} ${
- transition.curve.default
- }`,
+ transition: `width ${transition.speed.default} ${transition.curve.default}, background-color ${transition.speed.default} ${transition.curve.default}`,
width: `6.8rem`,
"&::placeholder": {
color: colors.lilac,
diff --git a/www/src/views/shared/thumbnail.js b/www/src/views/shared/thumbnail.js
index df84994360eff..f86efa8c1ae2b 100644
--- a/www/src/views/shared/thumbnail.js
+++ b/www/src/views/shared/thumbnail.js
@@ -33,9 +33,7 @@ const ThumbnailLink = ({ slug, image, title, children, state }) => {
"&&": {
borderBottom: `none`,
color: colors.text.header,
- transition: `all ${transition.speed.default} ${
- transition.curve.default
- }`,
+ transition: `all ${transition.speed.default} ${transition.curve.default}`,
"&:hover": { ...styles.screenshotHover },
"&:hover ~ .meta > .featured-site": {
transform: `translateY(-${space[1]})`,
diff --git a/www/src/views/showcase/featured-sites.js b/www/src/views/showcase/featured-sites.js
index 3c81b23d1146c..60543344e195b 100644
--- a/www/src/views/showcase/featured-sites.js
+++ b/www/src/views/showcase/featured-sites.js
@@ -186,9 +186,7 @@ class FeaturedSites extends Component {
fontWeight: `bold`,
color: colors.text.header,
fontFamily: fonts.header,
- transition: `box-shadow ${transition.speed.slow} ${
- transition.curve.default
- }, transform .3s ${transition.curve.default}`,
+ transition: `box-shadow ${transition.speed.slow} ${transition.curve.default}, transform .3s ${transition.curve.default}`,
"&:hover": { ...styles.screenshotHover },
},
}}
@@ -249,9 +247,7 @@ class FeaturedSites extends Component {
textAlign: `center`,
"&&": {
border: 0,
- transition: `all ${transition.speed.default} ${
- transition.curve.default
- }`,
+ transition: `all ${transition.speed.default} ${transition.curve.default}`,
"&:hover": {
background: colors.white,
transform: `translateY(-${space[1]})`,
diff --git a/www/src/views/showcase/showcase-list.js b/www/src/views/showcase/showcase-list.js
index c4fc7e79bf8cb..42502ee3c62ba 100644
--- a/www/src/views/showcase/showcase-list.js
+++ b/www/src/views/showcase/showcase-list.js
@@ -90,11 +90,7 @@ const ShowcaseList = ({ items, count, filters, onCategoryClick }) => {
css={{
"&&": {
display: `none`,
- transition: `background ${transition.speed.slow} ${
- transition.curve.default
- }, transform ${transition.speed.slow} ${
- transition.curve.default
- }`,
+ transition: `background ${transition.speed.slow} ${transition.curve.default}, transform ${transition.speed.slow} ${transition.curve.default}`,
[mediaQueries.lg]: {
alignItems: `center`,
background: colors.accent,
diff --git a/yarn.lock b/yarn.lock
index 09291e40ae843..e62c060650ee1 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -17059,9 +17059,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"
-prettier@1.17.1:
- version "1.17.1"
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.1.tgz#ed64b4e93e370cb8a25b9ef7fef3e4fd1c0995db"
+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==
pretty-bytes@^4.0.2:
version "4.0.2"