diff --git a/.eslintrc.json b/.eslintrc.json index 6a8dfc6..2fde1cf 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -23,6 +23,27 @@ "jest" ], "rules": { + "arrow-parens": [ + "error", + "as-needed" + ], + "arrow-spacing": [ + "error", + { + "before": true, + "after": true + } + ], + "comma-dangle": [ + "error", + { + "objects": "never", + "arrays": "never", + "imports": "never", + "exports": "never", + "functions": "never" + } + ], "indent": [ "error", 2 @@ -31,6 +52,13 @@ "error", "unix" ], + "max-len": [ + "warn", + { + "code": 80 + } + ], + "no-var": "error", "quotes": [ "error", "single" @@ -38,6 +66,18 @@ "semi": [ "error", "always" + ], + "space-before-function-paren": [ + "error", + { + "named": "never", + "anonymous": "never", + "asyncArrow": "always" + } + ], + "template-curly-spacing": [ + "error", + "always" ] }, "settings": { diff --git a/gatsby-config.js b/gatsby-config.js index 4ed2f98..d490d09 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -2,7 +2,9 @@ const buildId = [ process.env.CI_COMMIT_REF_SLUG || 'prerelese', (process.env.CI_COMMIT_SHA || 'gitsha').slice(0, 7) ].join('-'); -const banner = (process.env.NODE_ENV === 'production') ? false : (process.env.NODE_ENV || 'development'); +const banner = (process.env.NODE_ENV === 'production') + ? false + : (process.env.NODE_ENV || 'development'); module.exports = { siteMetadata: { diff --git a/src/components/Footer/index.js b/src/components/Footer/index.js index 56256d6..a0ef4c1 100644 --- a/src/components/Footer/index.js +++ b/src/components/Footer/index.js @@ -21,8 +21,12 @@ export const FooterImpl = ({ site: { siteMetadata } }) => ( Created by Jeff Avallone
  • - Generated images licensed: - Creative Commons CC-BY-3.0 License + Generated images licensed: + Creative Commons CC-BY-3.0 License
  • diff --git a/src/components/Header/index.js b/src/components/Header/index.js index ce9c80e..506e42b 100644 --- a/src/components/Header/index.js +++ b/src/components/Header/index.js @@ -17,14 +17,18 @@ const query = graphql` `; export const HeaderImpl = ({ site: { siteMetadata } }) => ( -
    +

    Regexper