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

@ -13,7 +13,7 @@ import '../css/imports/docs.css';
const toMenu = (menu, nav) =>
menu.map(group => ({
title: group.title,
group: nav.group.find(g => g.fieldValue === group.name)
group: nav.group.find(g => g.fieldValue === group.name),
}));
const DocPage = ({ data, location, history }) => {
@ -87,10 +87,7 @@ export const pageQuery = graphql`
}
widgets: allMarkdownRemark(
sort: { fields: [frontmatter___label], order: ASC }
filter: {
frontmatter: { label: { ne: null } }
fields: { slug: { regex: "/widgets/" } }
}
filter: { frontmatter: { label: { ne: null } }, fields: { slug: { regex: "/widgets/" } } }
) {
edges {
node {