Skip to content

Instantly share code, notes, and snippets.

View jpmarra's full-sized avatar
💭
🙃

JP Marra jpmarra

💭
🙃
View GitHub Profile
@jpmarra
jpmarra / gatsby-config.js
Created March 26, 2020 15:09
Gatsby Config
const path = require("path")
let contentfulConfig
try {
// Load the Contentful config from the .contentful.json
contentfulConfig = require("./.contentful")
const currentEnv = process.env.NODE_ENV
//TODO: Allow for preview API usage
// contentfulConfig =
// currentEnv === "production"
@jpmarra
jpmarra / prettier.js
Created October 10, 2019 19:28
Prettier Config
module.exports = {
// Specify the line length that the printer will wrap on.
printWidth: 120,
// Specify the number of spaces per indentation-level.
tabWidth: 4,
// Indent lines with tabs instead of spaces.
useTabs: false,