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 / fish_prompt.fish
Last active July 31, 2023 13:58
Customized fish prompt for a better Git experience
# Display informative Git status in the prompt (e.g., branch name, dirty state, etc.).
set -g __fish_git_prompt_show_informative_status true
# Show color hints in the Git prompt for different Git states (e.g., dirty, staged, conflicted).
set -g __fish_git_prompt_showcolorhints true
# Show verbose information about the upstream status in the Git prompt.
set -g __fish_git_prompt_showupstream verbose
# Colors for various Git states.
@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-package.json
Last active May 6, 2019 00:48
package.json file for starting with eslint
{
"scripts": {
"lint": "eslint src -c .eslintrc.json --ext js,jsx"
},
"dependencies": {
"react": "^16.5.0",
"react-dom": "^16.5.0"
},
"devDependencies": {
"eslint": "^5.5.0",
@joshuacrass
joshuacrass / eslintrc.json
Last active March 3, 2019 10:31
Example eslintrc with prettier
{
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["react", "prettier"],
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", "jsx"]
}
],
@joshuacrass
joshuacrass / eslint-eslintignore
Last active September 10, 2018 14:43
example eslint ignore file
src/registerServiceWorker.js
node_modules/*
public/*
build/*
config/*
@joshuacrass
joshuacrass / eslint-prettierrc
Created July 8, 2018 15:55
an example prettierr config file
{
"singleQuote": true,
"trailingComma": "all"
}