Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit d73e58e

Browse files
autofix-botgeropl
authored andcommitted
Autofix: trailing-spaces
1 parent 0a0e8d0 commit d73e58e

21 files changed

+70
-70
lines changed

gatsby-config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ module.exports = {
8686
'gatsby-plugin-typescript',
8787
'gatsby-plugin-sharp',
8888
'gatsby-transformer-sharp',
89-
{
90-
resolve: `gatsby-source-filesystem`,
91-
options: {
89+
{
90+
resolve: `gatsby-source-filesystem`,
91+
options: {
9292
path: `./src/resources/`,
9393
name: `resources`
94-
}
94+
}
9595
},
9696
{
9797
resolve: `gatsby-source-filesystem`,

gatsby-node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { execSync } = require('child_process');
44
const { URL } = require('url');
55
const path = require('path')
66
const screencasts = require('./src/contents/screencasts.json').screencasts
7-
const hyphenate = require('./src/utils/hyphenate')
7+
const hyphenate = require('./src/utils/hyphenate')
88

99
exports.onCreateNode = ({ node, actions, getNode }) => {
1010
const { createNodeField } = actions
@@ -104,7 +104,7 @@ exports.createPages = async ({ graphql, actions }) => {
104104
context: {
105105
screencast,
106106
nextScreencast: screencasts[i + 1] ? screencasts[i + 1] : null
107-
}
107+
}
108108
})
109109
})
110110
}

src/components/AnnouncementBanner.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,19 @@ const AnnoucementBanner = () => {
140140
})
141141

142142
return (
143-
<StyledAnnouncementBanner ref={bannerRef} style={{
144-
display:
145-
wasDisplayed() ? 'none' :
143+
<StyledAnnouncementBanner ref={bannerRef} style={{
144+
display:
145+
wasDisplayed() ? 'none' :
146146
'inline' }}>
147147
<div className="row">
148148
<div className="text">
149149
<p>
150150
<span className="wrapper">We're hiring!<span className="emojis">🌈 🌎</span></span>
151-
<Link
152-
to="/careers/#jobs"
151+
<Link
152+
to="/careers/#jobs"
153153
className="btn btn--cta btn--small"
154154
>
155-
<strong>{jobs.length}</strong>
155+
<strong>{jobs.length}</strong>
156156
&nbsp;Openings
157157
</Link>
158158
</p>

src/components/Banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const StyledBanner = styled.header`
5555
.img-container {
5656
display: block;
5757
flex: 0 0 30%;
58-
58+
5959
@media (min-width: 961px) {
6060
margin-left: 3rem;
6161
}

src/components/ImageProvider.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ interface ImageProviderProps {
2323
placeholderStyles?: CSSProperties
2424
}
2525

26-
const ImageProvider = ({
27-
fileName,
28-
alt,
29-
wrapperStyles,
30-
imageStyles,
31-
isNotRelativeToGatsbyImgWrapper,
32-
IsAPricingBoxIcon,
33-
isBlurred,
34-
fluidData,
35-
providerStyles,
26+
const ImageProvider = ({
27+
fileName,
28+
alt,
29+
wrapperStyles,
30+
imageStyles,
31+
isNotRelativeToGatsbyImgWrapper,
32+
IsAPricingBoxIcon,
33+
isBlurred,
34+
fluidData,
35+
providerStyles,
3636
className,
3737
placeholderStyles
3838
}: ImageProviderProps) => {
@@ -60,12 +60,12 @@ const ImageProvider = ({
6060
const found = allImageSharp.nodes.find((n: any) => {
6161
return n.fluid.originalName === fileName
6262
})
63-
63+
6464
resultingFluid = isBlurred ? found.blurredFluid : found.fluid
6565
}
66-
66+
6767
const imageStylesIfIsNotRelativeToGatsbyImgWrapper = {
68-
top: '50%',
68+
top: '50%',
6969
transform: 'translateY(-50%) scale(.93)',
7070
};
7171

@@ -81,12 +81,12 @@ const ImageProvider = ({
8181

8282
return (
8383
<StyledImageProvider style={providerStyles}>
84-
<Img
85-
className={`gatsby-image ${className}`}
86-
fluid={!fluidData ? resultingFluid : fluidData}
87-
alt={alt}
84+
<Img
85+
className={`gatsby-image ${className}`}
86+
fluid={!fluidData ? resultingFluid : fluidData}
87+
alt={alt}
8888
style={{position, ...wrapperStyles}}
89-
imgStyle={isNotRelativeToGatsbyImgWrapper ? imageStylesIfIsNotRelativeToGatsbyImgWrapper : imageStyles ? imageStyles : {}}
89+
imgStyle={isNotRelativeToGatsbyImgWrapper ? imageStylesIfIsNotRelativeToGatsbyImgWrapper : imageStyles ? imageStyles : {}}
9090
placeholderStyle={placeholderStyles}
9191
/>
9292
</StyledImageProvider>

src/components/MoreInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import MapGrey from '../resources/map-grey.svg'
88
const StyledMoreInfo = styled.div<{negativeSpaceTop?: string}>`
99
@media(min-width: calc(${sizes.breakpoints.md} + 1px)) {
1010
margin-top: ${({negativeSpaceTop}) => negativeSpaceTop };
11-
}
11+
}
1212
`
1313

1414
const StyledPricingLinks = styled.section`

src/components/PricingBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const StyledPricingBox = styled.div<StyledPricingBoxProps>`
106106
.g-image {
107107
position: relative;
108108
width: 7rem;
109-
height: 7rem;
109+
height: 7rem;
110110
margin: 0 0 5rem;
111111
}
112112

src/components/careers/ExpandableJob.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const StyledExpandableJob = styled.div`
5050
visibility: hidden;
5151
5252
&:focus {
53-
visibility: visible;
53+
visibility: visible;
5454
}
5555
}
5656
@@ -127,7 +127,7 @@ const ExpandableJob = ({ title, intro, paragraphs, lists, textAfterTheLists, ren
127127
'@type': 'JobPosting',
128128
title: title,
129129
description: (`
130-
<div>
130+
<div>
131131
<p>${intro}</p>
132132
${paragraphs.split('\n').map((p) => `<p>${p}</p>`).join(' ')}
133133
<div>
@@ -170,7 +170,7 @@ const ExpandableJob = ({ title, intro, paragraphs, lists, textAfterTheLists, ren
170170
/>
171171
</button>
172172
<h3>
173-
{title}
173+
{title}
174174
<a href={`#${hash}`} class="permalink">
175175
<svg xmlns="http://www.w3.org/2000/svg" class="permalink-icon" viewBox="0 0 512 512"><path d="M208 352h-64a96 96 0 010-192h64m96 0h64a96 96 0 010 192h-64m-140.71-96h187.42" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="36"/></svg>
176176
</a>

src/components/extension-uninstall/Form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ const Form = () => {
128128
<textarea onChange={handleTextAreaChange} aria-label="Do you have any other feedback?" placeholder="Do you have any other feedback?" name="otherFeedback"></textarea>
129129
<button className="btn" disabled={!state.feedback && !state.otherFeedback}>Send</button>
130130
</div>
131-
</>) : (
131+
</>) : (
132132
<div className="sucess">
133133
<img src={tick} className="tick" alt="Tick" />
134134
<h3>Thanks for your Feedback</h3>
135-
</div>
135+
</div>
136136
)
137137
}
138138
</StyledForm>

src/components/features/Intro.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ const Intro = () => (
8282
<div className="row">
8383
<Styled>
8484
<section className="intro pattern">
85-
<Img
86-
fluid={data.file.childImageSharp.fluid}
85+
<Img
86+
fluid={data.file.childImageSharp.fluid}
8787
alt="Ice Stick"
8888
className="ice-stick"
8989
/>

0 commit comments

Comments
 (0)