Skip to content

Commit

Permalink
Merge pull request #4 from milliorn/master-cf-autofix
Browse files Browse the repository at this point in the history
Apply fixes from CodeFactor
  • Loading branch information
milliorn committed Jan 6, 2021
2 parents f1edaff + 32bafc9 commit 5031c0b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
24 changes: 12 additions & 12 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ module.exports = {
image: 'src/img/logo.jpg',
siteUrl: `https://scottmilliorn.netlify.app/`,
social: {
twitter: '@scottmilliorn'
}
twitter: '@scottmilliorn',
},
},

// Gatsby plugins
Expand All @@ -19,8 +19,8 @@ module.exports = {
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/img`
}
path: `${__dirname}/src/img`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
Expand All @@ -38,18 +38,18 @@ module.exports = {
{
src: `/favicons/android-chrome-192x192.png`,
sizes: `192x192`,
type: `image/png`
type: `image/png`,
},
{
src: `/favicons/android-chrome-512x512.png`,
sizes: `512x512`,
type: `image/png`
}
type: `image/png`,
},
], // Add or remove icon sizes as desired
icon_options: {
purpose: `any maskable`
}
}
purpose: `any maskable`,
},
},
},
/*{
resolve: 'gatsby-plugin-webpack-bundle-analyser-v2',
Expand All @@ -72,6 +72,6 @@ module.exports = {
}
},*/
`gatsby-plugin-preact`,
`gatsby-plugin-minify`
]
`gatsby-plugin-minify`,
],
};
14 changes: 7 additions & 7 deletions src/components/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const About = () => {
Former musician.
Passion to learn in C# and .NET.`;

const sortArray = arr =>
const sortArray = (arr) =>
arr.sort((a, b) => {
if (a < b) return -1;
else if (a > b) return 1;
Expand Down Expand Up @@ -66,7 +66,7 @@ const About = () => {
subTitle: 'Things I Enjoy About Front-End',
subDesc: designSubDesc,
listTitle: 'Design Tools + Languages',
list: designList
list: designList,
},
{
img: WebApp,
Expand All @@ -75,7 +75,7 @@ const About = () => {
subTitle: 'Things I Love Building',
subDesc: webAppSubDesc,
listTitle: 'Development Tools + Languages',
list: WebAppList
list: WebAppList,
},
{
img: MobileApp,
Expand All @@ -84,11 +84,11 @@ const About = () => {
subTitle: 'Things I Love Developing or Aspire to Learn',
subDesc: MobileAppSubDesc,
listTitle: 'Development tools',
list: MobileAppList
}
list: MobileAppList,
},
];

return breakdowns.map(breakdown => (
return breakdowns.map((breakdown) => (
<div className="about__breakdown col" key={breakdown.title.toLowerCase()}>
<img src={breakdown.img} alt={breakdown.title} className="about__breakdown-img" />

Expand All @@ -100,7 +100,7 @@ const About = () => {

<p className="about__breakdown-subtitle">{breakdown.listTitle}</p>
<ul className="about__breakdown-list">
{breakdown.list.map(elem => (
{breakdown.list.map((elem) => (
<li key={elem} className="about__breakdown-elem">
{elem}
</li>
Expand Down
14 changes: 7 additions & 7 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Footer = () => {
`There are two ways to write error-free programs; only the third one works.`,
`It’s not a bug – it’s an undocumented feature.`,
`Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the universe trying to produce bigger and better idiots. So far, the universe is winning.`
and the universe trying to produce bigger and better idiots. So far, the universe is winning.`,
];

return quotes[Math.floor(Math.random() * quotes.length)];
Expand All @@ -25,26 +25,26 @@ const Footer = () => {
{
name: 'Github',
icon: 'ti-github',
url: 'https://github.com/milliorn'
url: 'https://github.com/milliorn',
},
{
name: 'LinkedIn',
icon: 'ti-linkedin',
url: 'https://www.linkedin.com/in/scott-milliorn/'
url: 'https://www.linkedin.com/in/scott-milliorn/',
},
{
name: 'Stack Overflow',
icon: 'ti-stack-overflow',
url: 'https://stackoverflow.com/users/11986604/milliorn'
url: 'https://stackoverflow.com/users/11986604/milliorn',
},
{
name: 'Twitter',
icon: 'ti-twitter',
url: 'https://twitter.com/scottmilliorn'
}
url: 'https://twitter.com/scottmilliorn',
},
];

return socials.map(social => (
return socials.map((social) => (
<a
target="_blank"
href={social.url}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const pageQuery = graphql`
`;

// Add canonical links to your pages
const Layout = props => (
const Layout = (props) => (
<StaticQuery
query={pageQuery}
render={({ site: { siteMetadata: seo } }) => {
Expand All @@ -43,7 +43,7 @@ const Layout = props => (
{ name: 'twitter:creator', content: seo.social.twitter },
{ name: 'twitter:title', content: title },
{ name: 'twitter:description', content: description },
{ name: 'twitter:image', content: image }
{ name: 'twitter:image', content: image },
];

return (
Expand Down Expand Up @@ -76,11 +76,11 @@ Layout.propTypes = {
path: PropTypes.string,
canonicalUrl: PropTypes.string,
children: PropTypes.node.isRequired,
className: PropTypes.string
className: PropTypes.string,
};

Layout.defaultProps = {
className: 'cross-site'
className: 'cross-site',
};

export default Layout;
2 changes: 1 addition & 1 deletion src/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

.hero__footer-img {
width: 100%;
padding: 0 2rem 0;
padding: 0 2rem;
max-width: 40rem;
}

Expand Down

0 comments on commit 5031c0b

Please sign in to comment.