diff --git a/.prettierignore b/.prettierignore index 58d06c3..b4770e9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,4 @@ package.json package-lock.json public +node_modules \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index 33d2cfa..0c06006 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,5 @@ { "arrowParens": "avoid", - "semi": false + "semi": true, + "singleQuote": true } diff --git a/gatsby-browser.js b/gatsby-browser.js index cc1bda7..01e21b7 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -1 +1 @@ -import "@kichiyaki/roboto" +import '@kichiyaki/roboto'; diff --git a/gatsby-config.js b/gatsby-config.js index e602b7d..b118e5f 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,11 +1,11 @@ -const siteUrl = "https://dwysokinski.me" +const siteUrl = 'https://dwysokinski.me'; module.exports = { siteMetadata: { title: `Dawid Wysokiński | Full Stack Web Developer`, description: `Dawid Wysokiński - Full Stack Web Developer | Back End Developer | Front End Developer`, authorTwitter: `@Dawid56143781`, - authorFullName: "Dawid Wysokiński", + authorFullName: 'Dawid Wysokiński', siteUrl, }, plugins: [ @@ -39,16 +39,16 @@ module.exports = { }, `gatsby-plugin-sitemap`, { - resolve: "gatsby-plugin-robots-txt", + resolve: 'gatsby-plugin-robots-txt', options: { host: siteUrl, - sitemap: siteUrl + "/sitemap.xml", + sitemap: siteUrl + '/sitemap.xml', env: { development: { - policy: [{ userAgent: "*", disallow: ["/"] }], + policy: [{ userAgent: '*', disallow: ['/'] }], }, production: { - policy: [{ userAgent: "*", allow: "/" }], + policy: [{ userAgent: '*', allow: '/' }], }, }, }, @@ -57,4 +57,4 @@ module.exports = { // To learn more, visit: https://gatsby.dev/offline // `gatsby-plugin-offline`, ], -} +}; diff --git a/src/components/Layout/Footer.js b/src/components/Layout/Footer.js index 2c9b32d..0c1872f 100644 --- a/src/components/Layout/Footer.js +++ b/src/components/Layout/Footer.js @@ -1,26 +1,26 @@ -import React from "react" +import React from 'react'; -import { makeStyles } from "@material-ui/core/styles" -import { Typography } from "@material-ui/core" -import Section from "@components/Section" +import { makeStyles } from '@material-ui/core/styles'; +import { Typography } from '@material-ui/core'; +import Section from '@components/Section'; const useStyles = makeStyles(theme => { return { footer: { - padding: "1.5rem 0", + padding: '1.5rem 0', }, - } -}) + }; +}); function Footer() { - const classes = useStyles() + const classes = useStyles(); return (
© {new Date().getFullYear()} Dawid Wysokiński
- ) + ); } -export default Footer +export default Footer; diff --git a/src/components/Layout/Layout.js b/src/components/Layout/Layout.js index 794eb3f..3acc8dc 100644 --- a/src/components/Layout/Layout.js +++ b/src/components/Layout/Layout.js @@ -1,19 +1,19 @@ -import React, { Fragment } from "react" -import PropTypes from "prop-types" -import classnames from "classnames" +import React, { Fragment } from 'react'; +import PropTypes from 'prop-types'; +import classnames from 'classnames'; -import { makeStyles } from "@material-ui/core/styles" -import { CssBaseline } from "@material-ui/core" -import Navbar from "./Navbar" -import Footer from "./Footer" +import { makeStyles } from '@material-ui/core/styles'; +import { CssBaseline } from '@material-ui/core'; +import Navbar from './Navbar'; +import Footer from './Footer'; const useStyles = makeStyles(theme => ({ main: { - minHeight: "calc(100vh - 200px)", + minHeight: 'calc(100vh - 200px)', paddingTop: theme.spacing(2), paddingBottom: theme.spacing(3), }, -})) +})); const Layout = ({ children, @@ -22,7 +22,7 @@ const Layout = ({ showNavbar, showFooter, }) => { - const classes = useStyles() + const classes = useStyles(); return ( @@ -31,19 +31,19 @@ const Layout = ({ {showFooter &&