Skip to content

Instantly share code, notes, and snippets.

module.exports = {
siteMetadata: {
title: 'All your base are belong to us',
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-google-fonts',
options: {
fonts: [
.material-icons {
font-family: 'Material Icons';
font-size: 24px;
}
<span className="material-icons">menu</span>
<span className="material-icons">check_circle</span>
function nvm
bass source (brew --prefix nvm)/nvm.sh --no-use ';' nvm $argv
end
set -x NVM_DIR ~/.nvm
nvm use default --silent
@joshuacrass
joshuacrass / .eslintrc
Created July 2, 2018 16:36
starter eslint config for react project extending airbnb
{
"parser": "babel-eslint",
"extends": ["airbnb"],
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"sourceType": "module"
@joshuacrass
joshuacrass / eslint-prettierrc
Created July 8, 2018 15:55
an example prettierr config file
{
"singleQuote": true,
"trailingComma": "all"
}
@joshuacrass
joshuacrass / react-starter-package.json
Created September 9, 2018 13:44
react-starter package.json
{
"name": "react-starter",
"version": "1.0.0",
"description": "A React starter project",
"main": "index.jsx",
"author": "Joshua Crass <joshua.crass@gmail.com>",
"license": "UNLICENSED",
"private": true
}
import React from "react";
import ReactDOM from "react-dom";
import App from "./app";
ReactDOM.render(<App />, document.getElementById("root"));
@joshuacrass
joshuacrass / react-starter-index.html
Last active September 9, 2018 18:58
react-starter index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width" />
<title>React Starter</title>
<script src="./index.jsx"></script>
</head>
@joshuacrass
joshuacrass / react-starter-app.css
Created September 10, 2018 05:14
react-starter app.css
.app {
color: blue;
font-size: 2rem;
text-align: center;
}