chore: add code formatting and linting (#952)

This commit is contained in:
Caleb
2018-08-07 14:46:54 -06:00
committed by Shawn Erquhart
parent 32e0a9b2b5
commit f801b19221
265 changed files with 5988 additions and 4481 deletions

View File

@ -43,8 +43,8 @@ exports.createPages = async ({ graphql, boundActionCreators }) => {
path: slug,
component: template,
context: {
slug
}
slug,
},
});
});
};
@ -70,7 +70,7 @@ exports.onCreateNode = ({ node, boundActionCreators, getNode }) => {
createNodeField({
node,
name: 'date',
value: date.toJSON()
value: date.toJSON(),
});
}
@ -78,14 +78,14 @@ exports.onCreateNode = ({ node, boundActionCreators, getNode }) => {
createNodeField({
node,
name: 'slug',
value: slug
value: slug,
});
// used to create GitHub edit link
createNodeField({
node,
name: 'path',
value: relativePath
value: relativePath,
});
}
};