From 76a57d93905538e9c1ea97eae76510a372a81d5e Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2020 10:58:29 +0000 Subject: [PATCH 1/2] Bump prettier from 1.19.1 to 2.0.1 Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.1) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b6977710..93b09980 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "eslint-plugin-react": "^7.19.0", "husky": "^4.2.3", "lint-staged": "^10.0.8", - "prettier": "^1.19.1" + "prettier": "^2.0.1" }, "keywords": [ "sia", diff --git a/yarn.lock b/yarn.lock index 6c94f8e6..5b2297df 100644 --- a/yarn.lock +++ b/yarn.lock @@ -804,7 +804,7 @@ core-js-pure "^3.0.0" regenerator-runtime "^0.13.4" -"@babel/runtime@^7.1.2", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.1", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": +"@babel/runtime@^7.1.2", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.1", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": version "7.8.7" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.7.tgz#8fefce9802db54881ba59f90bb28719b4996324d" integrity sha512-+AATMUFppJDw6aiR5NVPHqIQBlV/Pj8wY/EZH+lmvRdUo9xBaz/rF3alAwFJQavvKfeOlPE7oaaDHVbcySbCsg== @@ -10166,10 +10166,10 @@ prepend-http@^2.0.0: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= -prettier@^1.19.1: - version "1.19.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" - integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== +prettier@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.1.tgz#3f00ac71263be34684b2b2c8d7e7f63737592dac" + integrity sha512-piXGBcY1zoFOG0MvHpNE5reAGseLmaCRifQ/fmfF49BcYkInEs/naD/unxGNAeOKFA5+JxVrPyMvMlpzcd20UA== pretty-bytes@5.3.0, pretty-bytes@^5.3.0: version "5.3.0" From 222317b60031db753b8c9e5c2897094f2c321176 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 23 Mar 2020 15:02:47 +0100 Subject: [PATCH 2/2] upgrade to prettier 2.0 --- .dependabot/config.yml | 2 +- .eslintrc.json | 47 +++++++---------- .github/workflows/build.yml | 46 ++++++++-------- .prettierrc | 1 - cypress/fixtures/check.json | 2 +- cypress/integration/intergration.spec.js | 4 +- gatsby-config.js | 18 +++---- package.json | 1 - src/components/CircleIcon/CircleIcon.js | 2 +- src/components/CodeExamples/Colors.js | 64 +++++++++++------------ src/components/FAQ/FAQ.js | 2 +- src/components/HomeNetwork/HomeNetwork.js | 6 +-- src/components/HomeNetwork/useStats.js | 10 ++-- src/components/HomeSamples/HomeSamples.js | 2 +- src/components/HomeUpload/HomeUpload.js | 19 +++---- src/components/Mailing/Mailing.js | 6 +-- src/components/Sample/Sample.js | 2 +- src/components/SocialLink/SocialLink.js | 2 +- src/components/UploadFile/UploadFile.js | 4 +- src/components/index.js | 2 +- src/components/seo.js | 24 ++++----- src/pages/index.js | 4 +- src/svg/Arrow.js | 2 +- src/svg/Cylinder.js | 2 +- src/svg/Discord.js | 2 +- src/svg/DoubleRight.js | 2 +- src/svg/Download.js | 2 +- src/svg/Github.js | 2 +- src/svg/Logo.js | 2 +- src/svg/LogoSolid.js | 2 +- src/svg/Pyramid.js | 2 +- src/svg/SmallOrb.js | 2 +- src/svg/Twitter.js | 2 +- src/svg/index.js | 2 +- 34 files changed, 139 insertions(+), 155 deletions(-) diff --git a/.dependabot/config.yml b/.dependabot/config.yml index 241aeef4..846ddcaa 100644 --- a/.dependabot/config.yml +++ b/.dependabot/config.yml @@ -5,4 +5,4 @@ update_configs: directory: "/" update_schedule: "weekly" default_assignees: - - "kwypchlo" \ No newline at end of file + - "kwypchlo" diff --git a/.eslintrc.json b/.eslintrc.json index 8414ede6..58d80ffb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,29 +1,22 @@ { - "env": { - "browser": true, - "es6": true, - "cypress/globals": true, - "node": true + "env": { + "browser": true, + "es6": true, + "cypress/globals": true, + "node": true + }, + "extends": ["prettier", "eslint:recommended", "plugin:react/recommended"], + "settings": { + "react": { + "version": "detect" + } + }, + "parserOptions": { + "ecmaFeatures": { + "jsx": true }, - "extends": [ - "prettier", - "eslint:recommended", - "plugin:react/recommended" - ], - "settings": { - "react": { - "version": "detect" - } - }, - "parserOptions": { - "ecmaFeatures": { - "jsx": true - }, - "ecmaVersion": 2018, - "sourceType": "module" - }, - "plugins": [ - "react", - "cypress" - ] -} \ No newline at end of file + "ecmaVersion": 2018, + "sourceType": "module" + }, + "plugins": ["react", "cypress"] +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10cddb01..66f0cfcf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,30 +4,32 @@ on: [push] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: 12.x - - - name: Install dependencies - run: yarn + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 12.x - - name: Build production bundle - run: yarn build - env: - GATSBY_API_URL: "https://siasky.net" + - name: Install dependencies + run: yarn - - name: Cypress run - uses: cypress-io/github-action@v1 - env: - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - record: true - start: npx http-server public --port 8000 - wait-on: "http://localhost:8000" + - name: Static code analysis + run: yarn prettier --check . + + - name: Build production bundle + run: yarn build + env: + GATSBY_API_URL: "https://siasky.net" + + - name: Cypress run + uses: cypress-io/github-action@v1 + env: + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + record: true + start: npx http-server public --port 8000 + wait-on: "http://localhost:8000" diff --git a/.prettierrc b/.prettierrc index 9efb91d2..963354f2 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,3 @@ { - "arrowParens": "always", "printWidth": 120 } diff --git a/cypress/fixtures/check.json b/cypress/fixtures/check.json index 47971aa3..0287aedd 100644 --- a/cypress/fixtures/check.json +++ b/cypress/fixtures/check.json @@ -1,3 +1,3 @@ { "ok": true -} \ No newline at end of file +} diff --git a/cypress/integration/intergration.spec.js b/cypress/integration/intergration.spec.js index 487d1176..ab94bdec 100644 --- a/cypress/integration/intergration.spec.js +++ b/cypress/integration/intergration.spec.js @@ -21,9 +21,7 @@ context("Skynet", () => { cy.get('.home-upload input[type="file"]').upload({ fileContent, fileName, mimeType: "application/json" }); }); - cy.get(".home-uploaded-files") - .children() - .should("have.length", 1); + cy.get(".home-uploaded-files").children().should("have.length", 1); cy.wait("@upload"); diff --git a/gatsby-config.js b/gatsby-config.js index d0a10f3c..7947ec05 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -3,7 +3,7 @@ module.exports = { title: `Skynet`, description: `Skynet is a decentralized file sharing and content distribution protocol.`, author: `Nebulous`, - siteUrl: `https://siasky.net` + siteUrl: `https://siasky.net`, }, plugins: [ `gatsby-plugin-sass`, @@ -12,8 +12,8 @@ module.exports = { resolve: `gatsby-source-filesystem`, options: { name: `images`, - path: `${__dirname}/src/images` - } + path: `${__dirname}/src/images`, + }, }, `gatsby-transformer-sharp`, `gatsby-plugin-sharp`, @@ -27,17 +27,17 @@ module.exports = { background_color: `#f1f7f2`, theme_color: `#f1f7f2`, display: `minimal-ui`, - icon: `src/images/logo.svg` // This path is relative to the root of the site. - } + icon: `src/images/logo.svg`, // This path is relative to the root of the site. + }, }, { resolve: "gatsby-plugin-matomo", options: { siteId: 3, matomoUrl: "https://surveillance.sia.tech", - siteUrl: "https://siasky.net" - } + siteUrl: "https://siasky.net", + }, }, - `gatsby-plugin-remove-serviceworker` - ] + `gatsby-plugin-remove-serviceworker`, + ], }; diff --git a/package.json b/package.json index 93b09980..e17ae738 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,6 @@ "license": "MIT", "scripts": { "build": "gatsby build", - "format": "prettier --write \"**/*.{js,jsx,ts,tsx,md,html,css,scss}\"", "start": "gatsby develop", "serve": "gatsby serve", "clean": "gatsby clean" diff --git a/src/components/CircleIcon/CircleIcon.js b/src/components/CircleIcon/CircleIcon.js index 9280047e..a032c62e 100644 --- a/src/components/CircleIcon/CircleIcon.js +++ b/src/components/CircleIcon/CircleIcon.js @@ -7,5 +7,5 @@ export default function CircleIcon({ children }) { } CircleIcon.propTypes = { - children: PropTypes.node + children: PropTypes.node, }; diff --git a/src/components/CodeExamples/Colors.js b/src/components/CodeExamples/Colors.js index b54fbc43..e8d5a353 100644 --- a/src/components/CodeExamples/Colors.js +++ b/src/components/CodeExamples/Colors.js @@ -4,105 +4,105 @@ export default { overflowX: "auto", padding: "0.5em", background: "#171917", - color: "#e6e1dc" + color: "#e6e1dc", }, "hljs-comment": { color: "#bc9458", - fontStyle: "italic" + fontStyle: "italic", }, "hljs-quote": { color: "#bc9458", - fontStyle: "italic" + fontStyle: "italic", }, "hljs-keyword": { - color: "#c26230" + color: "#c26230", }, "hljs-selector-tag": { - color: "#c26230" + color: "#c26230", }, "hljs-string": { - color: "#a5c261" + color: "#a5c261", }, "hljs-number": { - color: "#a5c261" + color: "#a5c261", }, "hljs-regexp": { - color: "#a5c261" + color: "#a5c261", }, "hljs-variable": { - color: "#a5c261" + color: "#a5c261", }, "hljs-template-variable": { - color: "#a5c261" + color: "#a5c261", }, "hljs-subst": { - color: "#519f50" + color: "#519f50", }, "hljs-tag": { - color: "#e8bf6a" + color: "#e8bf6a", }, "hljs-name": { - color: "#e8bf6a" + color: "#e8bf6a", }, "hljs-type": { - color: "#da4939" + color: "#da4939", }, "hljs-symbol": { - color: "#6d9cbe" + color: "#6d9cbe", }, "hljs-bullet": { - color: "#6d9cbe" + color: "#6d9cbe", }, "hljs-built_in": { - color: "#6d9cbe" + color: "#6d9cbe", }, "hljs-builtin-name": { - color: "#6d9cbe" + color: "#6d9cbe", }, "hljs-attr": { - color: "#6d9cbe" + color: "#6d9cbe", }, "hljs-link": { color: "#6d9cbe", - textDecoration: "underline" + textDecoration: "underline", }, "hljs-params": { - color: "#d0d0ff" + color: "#d0d0ff", }, "hljs-attribute": { - color: "#cda869" + color: "#cda869", }, "hljs-meta": { - color: "#9b859d" + color: "#9b859d", }, "hljs-title": { - color: "#ffc66d" + color: "#ffc66d", }, "hljs-section": { - color: "#ffc66d" + color: "#ffc66d", }, "hljs-addition": { backgroundColor: "#144212", color: "#e6e1dc", display: "inline-block", - width: "100%" + width: "100%", }, "hljs-deletion": { backgroundColor: "#600", color: "#e6e1dc", display: "inline-block", - width: "100%" + width: "100%", }, "hljs-selector-class": { - color: "#9b703f" + color: "#9b703f", }, "hljs-selector-id": { - color: "#8b98ab" + color: "#8b98ab", }, "hljs-emphasis": { - fontStyle: "italic" + fontStyle: "italic", }, "hljs-strong": { - fontWeight: "bold" - } + fontWeight: "bold", + }, }; diff --git a/src/components/FAQ/FAQ.js b/src/components/FAQ/FAQ.js index 066dbef6..d3ce4b57 100644 --- a/src/components/FAQ/FAQ.js +++ b/src/components/FAQ/FAQ.js @@ -16,5 +16,5 @@ export default function FAQ({ title, children }) { FAQ.propTypes = { title: PropTypes.string, - children: PropTypes.node + children: PropTypes.node, }; diff --git a/src/components/HomeNetwork/HomeNetwork.js b/src/components/HomeNetwork/HomeNetwork.js index 2d53bb20..ea7a1d74 100644 --- a/src/components/HomeNetwork/HomeNetwork.js +++ b/src/components/HomeNetwork/HomeNetwork.js @@ -14,7 +14,7 @@ const STATS_MAP = [ { name: "TB Capacity", key: AVAILABLE_STATS.NETWORK_CAPACITY_TB }, { name: "Hosts", key: AVAILABLE_STATS.ONLINE_HOSTS_COUNT }, { name: "Storage/TB", key: AVAILABLE_STATS.STORAGE_COST_USD, currency: true }, - { name: "Bandwidth/TB", key: AVAILABLE_STATS.BANDWIDTH_DOWN_COST_USD, currency: true } + { name: "Bandwidth/TB", key: AVAILABLE_STATS.BANDWIDTH_DOWN_COST_USD, currency: true }, ]; export default function HomeNetwork() { @@ -193,7 +193,7 @@ StatValue.propTypes = { stat: PropTypes.shape({ key: PropTypes.string.isRequired, name: PropTypes.string.isRequired, - currency: PropTypes.bool + currency: PropTypes.bool, }).isRequired, - value: PropTypes.number.isRequired + value: PropTypes.number.isRequired, }; diff --git a/src/components/HomeNetwork/useStats.js b/src/components/HomeNetwork/useStats.js index ee292ecb..9ebc2fc9 100644 --- a/src/components/HomeNetwork/useStats.js +++ b/src/components/HomeNetwork/useStats.js @@ -6,7 +6,7 @@ export const AVAILABLE_STATS = { STORAGE_USED_TB: "storageUsedTB", NETWORK_CAPACITY_TB: "networkCapacityTB", STORAGE_COST_USD: "storageCostUSD", - BANDWIDTH_DOWN_COST_USD: "bandwidthDownCostUSD" + BANDWIDTH_DOWN_COST_USD: "bandwidthDownCostUSD", }; export default function useStats() { @@ -15,7 +15,7 @@ export default function useStats() { [AVAILABLE_STATS.STORAGE_USED_TB]: null, [AVAILABLE_STATS.NETWORK_CAPACITY_TB]: null, [AVAILABLE_STATS.STORAGE_COST_USD]: null, - [AVAILABLE_STATS.BANDWIDTH_DOWN_COST_USD]: null + [AVAILABLE_STATS.BANDWIDTH_DOWN_COST_USD]: null, }); useEffect(() => { @@ -38,7 +38,7 @@ async function getBandwidthStats() { const current = data.reverse().find((entry) => "downusd" in entry); return { - [AVAILABLE_STATS.BANDWIDTH_DOWN_COST_USD]: current.downusd + [AVAILABLE_STATS.BANDWIDTH_DOWN_COST_USD]: current.downusd, }; } @@ -49,7 +49,7 @@ async function getPriceStats() { const current = data.reverse().find((entry) => "usd" in entry); return { - [AVAILABLE_STATS.STORAGE_COST_USD]: current.usd + [AVAILABLE_STATS.STORAGE_COST_USD]: current.usd, }; } @@ -63,6 +63,6 @@ async function getStorageStats() { return { [AVAILABLE_STATS.ONLINE_HOSTS_COUNT]: data.online_hosts, [AVAILABLE_STATS.STORAGE_USED_TB]: data.used_storage_TB, - [AVAILABLE_STATS.NETWORK_CAPACITY_TB]: data.network_capacity_TB + [AVAILABLE_STATS.NETWORK_CAPACITY_TB]: data.network_capacity_TB, }; } diff --git a/src/components/HomeSamples/HomeSamples.js b/src/components/HomeSamples/HomeSamples.js index cb360108..e24d2dee 100644 --- a/src/components/HomeSamples/HomeSamples.js +++ b/src/components/HomeSamples/HomeSamples.js @@ -12,7 +12,7 @@ const samples = [ { type: "Audio", url: "/_A2zt5SKoqwnnZU4cBF8uBycSKULXMyeg1c5ZISBr2Q3dA" }, { type: "Video", url: "/CABAB_1Dt0FJsxqsu_J4TodNCbCGvtFf1Uys_3EgzOlTcg" }, { type: "JSON", url: "/AAC0uO43g64ULpyrW0zO3bjEknSFbAhm8c-RFP21EQlmSQ" }, - { type: "Dapp", url: "/EAC5HJr5Pu086EAZG4fP_r6Pnd7Ft366vt6t2AnjkoFb9Q/index.html" } + { type: "Dapp", url: "/EAC5HJr5Pu086EAZG4fP_r6Pnd7Ft366vt6t2AnjkoFb9Q/index.html" }, ]; export default function HomeSamples() { diff --git a/src/components/HomeUpload/HomeUpload.js b/src/components/HomeUpload/HomeUpload.js index e96d5a56..924f6c6c 100644 --- a/src/components/HomeUpload/HomeUpload.js +++ b/src/components/HomeUpload/HomeUpload.js @@ -27,11 +27,7 @@ export default function HomeUpload() { const getRelativeFilePath = (file) => { const filePath = getFilePath(file); const { root, dir, base } = path.parse(filePath); - const relative = path - .normalize(dir) - .slice(root.length) - .split(path.sep) - .slice(1); + const relative = path.normalize(dir).slice(root.length).split(path.sep).slice(1); return path.join(...relative, base); }; @@ -40,10 +36,7 @@ export default function HomeUpload() { const filePath = getFilePath(file); const { root, dir } = path.parse(filePath); - return path - .normalize(dir) - .slice(root.length) - .split(path.sep)[0]; + return path.normalize(dir).slice(root.length).split(path.sep)[0]; }; const handleDrop = async (acceptedFiles) => { @@ -63,9 +56,9 @@ export default function HomeUpload() { ...previousFiles.slice(0, index), { ...previousFiles[index], - ...state + ...state, }, - ...previousFiles.slice(index + 1) + ...previousFiles.slice(index + 1), ]; }); }; @@ -78,7 +71,7 @@ export default function HomeUpload() { const status = progress === 1 ? "processing" : "uploading"; onFileStateChange(file, { status, progress }); - } + }, }); return data; @@ -127,7 +120,7 @@ export default function HomeUpload() {
diff --git a/src/components/Mailing/Mailing.js b/src/components/Mailing/Mailing.js index b61e1a04..1db48c5f 100644 --- a/src/components/Mailing/Mailing.js +++ b/src/components/Mailing/Mailing.js @@ -16,7 +16,7 @@ const CustomForm = ({ status, message, onValidated, light, id }) => { if ((email, user, email.value.indexOf("@") > -1)) { onValidated({ EMAIL: email.value, - USER: user.checked ? "Yes" : "No" + USER: user.checked ? "Yes" : "No", }); } }; @@ -50,7 +50,7 @@ CustomForm.propTypes = { message: PropTypes.string, onValidated: PropTypes.func, light: PropTypes.bool, - id: PropTypes.string + id: PropTypes.string, }; export default function Mailing({ light, id }) { @@ -72,5 +72,5 @@ export default function Mailing({ light, id }) { Mailing.propTypes = { light: PropTypes.bool, - id: PropTypes.string + id: PropTypes.string, }; diff --git a/src/components/Sample/Sample.js b/src/components/Sample/Sample.js index cada25d2..ebd5065d 100644 --- a/src/components/Sample/Sample.js +++ b/src/components/Sample/Sample.js @@ -21,5 +21,5 @@ export default function Sample({ type, url, className }) { Sample.propTypes = { type: PropTypes.string, url: PropTypes.string, - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/components/SocialLink/SocialLink.js b/src/components/SocialLink/SocialLink.js index 57cf78d3..97c34f89 100644 --- a/src/components/SocialLink/SocialLink.js +++ b/src/components/SocialLink/SocialLink.js @@ -29,5 +29,5 @@ SocialLink.propTypes = { icon: PropTypes.string, title: PropTypes.node, greenText: PropTypes.string, - url: PropTypes.string + url: PropTypes.string, }; diff --git a/src/components/UploadFile/UploadFile.js b/src/components/UploadFile/UploadFile.js index 00a9c83a..676fa934 100644 --- a/src/components/UploadFile/UploadFile.js +++ b/src/components/UploadFile/UploadFile.js @@ -75,9 +75,9 @@ export default function UploadFile({ file, url, status, progress }) { UploadFile.propTypes = { file: PropTypes.shape({ - name: PropTypes.string.isRequired + name: PropTypes.string.isRequired, }), status: PropTypes.string.isRequired, url: PropTypes.string, - progress: PropTypes.number + progress: PropTypes.number, }; diff --git a/src/components/index.js b/src/components/index.js index 0cab4d4c..f3380d47 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -34,5 +34,5 @@ export { UploadFile, LoadingSpinner, Footer, - Mailing + Mailing, }; diff --git a/src/components/seo.js b/src/components/seo.js index cacf237e..32444d10 100644 --- a/src/components/seo.js +++ b/src/components/seo.js @@ -28,42 +28,42 @@ function SEO({ lang, meta }) { return ( ); @@ -72,12 +72,12 @@ function SEO({ lang, meta }) { SEO.defaultProps = { lang: `en`, meta: [], - description: `` + description: ``, }; SEO.propTypes = { lang: PropTypes.string, - meta: PropTypes.arrayOf(PropTypes.object) + meta: PropTypes.arrayOf(PropTypes.object), }; export default SEO; diff --git a/src/pages/index.js b/src/pages/index.js index 2f5e3fda..f45be631 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -8,7 +8,7 @@ import AppContext from "../AppContext"; export default function IndexPage({ location }) { const context = useMemo( () => ({ - apiUrl: process.env.GATSBY_API_URL || location.origin + apiUrl: process.env.GATSBY_API_URL || location.origin, }), [location.origin] ); @@ -22,5 +22,5 @@ export default function IndexPage({ location }) { } IndexPage.propTypes = { - location: PropTypes.object.isRequired + location: PropTypes.object.isRequired, }; diff --git a/src/svg/Arrow.js b/src/svg/Arrow.js index 267cc481..00fcf228 100644 --- a/src/svg/Arrow.js +++ b/src/svg/Arrow.js @@ -10,5 +10,5 @@ export default function Arrow({ className }) { } Arrow.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/Cylinder.js b/src/svg/Cylinder.js index 7d4c1c0a..74392830 100644 --- a/src/svg/Cylinder.js +++ b/src/svg/Cylinder.js @@ -17,5 +17,5 @@ export default function Cylinder({ className }) { } Cylinder.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/Discord.js b/src/svg/Discord.js index 7f4e51ff..69aa05b1 100644 --- a/src/svg/Discord.js +++ b/src/svg/Discord.js @@ -14,5 +14,5 @@ export default function Discord({ className }) { } Discord.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/DoubleRight.js b/src/svg/DoubleRight.js index c7213322..0e3afe1e 100644 --- a/src/svg/DoubleRight.js +++ b/src/svg/DoubleRight.js @@ -17,5 +17,5 @@ export default function DoubleRight({ className }) { } DoubleRight.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/Download.js b/src/svg/Download.js index ac84f54d..ba3db816 100644 --- a/src/svg/Download.js +++ b/src/svg/Download.js @@ -24,5 +24,5 @@ export default function Download({ className }) { } Download.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/Github.js b/src/svg/Github.js index ef9c47a2..3783a49d 100644 --- a/src/svg/Github.js +++ b/src/svg/Github.js @@ -14,5 +14,5 @@ export default function Github({ className }) { } Github.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/Logo.js b/src/svg/Logo.js index 02f8f56f..343436b6 100644 --- a/src/svg/Logo.js +++ b/src/svg/Logo.js @@ -16,5 +16,5 @@ export default function Logo({ className }) { } Logo.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/LogoSolid.js b/src/svg/LogoSolid.js index 4554282a..e558bf96 100644 --- a/src/svg/LogoSolid.js +++ b/src/svg/LogoSolid.js @@ -14,5 +14,5 @@ export default function LogoSolid({ className }) { } LogoSolid.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/Pyramid.js b/src/svg/Pyramid.js index 26c2751c..6b639e03 100644 --- a/src/svg/Pyramid.js +++ b/src/svg/Pyramid.js @@ -18,5 +18,5 @@ export default function Pyramid({ className }) { } Pyramid.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/SmallOrb.js b/src/svg/SmallOrb.js index 7470d8f7..236581be 100644 --- a/src/svg/SmallOrb.js +++ b/src/svg/SmallOrb.js @@ -17,5 +17,5 @@ export default function SmallOrb({ className }) { } SmallOrb.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/Twitter.js b/src/svg/Twitter.js index 6ce04784..26c9a1be 100644 --- a/src/svg/Twitter.js +++ b/src/svg/Twitter.js @@ -14,5 +14,5 @@ export default function Twitter({ className }) { } Twitter.propTypes = { - className: PropTypes.string + className: PropTypes.string, }; diff --git a/src/svg/index.js b/src/svg/index.js index a46738d1..162cb706 100644 --- a/src/svg/index.js +++ b/src/svg/index.js @@ -60,5 +60,5 @@ export { Deco5, Deco6, Deco7, - Deco8 + Deco8, };