refact: clean up unused variables & setup matching lint rule

This commit is contained in:
Jean-Philippe Sirois
2019-09-05 01:41:03 -04:00
parent 7d426bc21d
commit cd81e62d0c
7 changed files with 4 additions and 15 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
"develop": "gatsby develop",
"fetch-users": "node ./scripts/fetchUsers.js",
"format": "prettier --write src/**/*.{js,jsx}",
"lint": "tslint -c tslint.json '{src,scripts}/**/*.{js,ts,tsx}'",
"lint": "tslint -p tsconfig.json -c tslint.json '{src,scripts}/**/*.{js,ts,tsx}'",
"lint:fix": "npm run lint -- --fix",
"serve": "gatsby serve",
"start": "npm run develop",
-1
View File
@@ -1,4 +1,3 @@
import { Link } from "gatsby"
import styled from "styled-components"
export const FooterWrapper = styled.footer`
-10
View File
@@ -5,7 +5,6 @@
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import { graphql, useStaticQuery } from "gatsby"
import React, { Fragment, PropsWithChildren } from "react"
import { GlobalStyles } from "../../globalStyles"
@@ -20,15 +19,6 @@ export function Layout({
location,
}: PropsWithChildren<{ location: Location }>) {
const isHome = location.pathname === "/"
const data = useStaticQuery(graphql`
query {
site {
siteMetadata {
title
}
}
}
`)
return (
<SC.LayoutWrapper>
+1 -1
View File
@@ -1,6 +1,6 @@
import { graphql } from "gatsby"
import React, { Fragment } from "react"
import { MarkdownRemark, Query } from "../../generated/graphql"
import { MarkdownRemark } from "../../generated/graphql"
import { Markdown } from "../components/Markdown"
import { SEO } from "../components/SEO"
-1
View File
@@ -1,4 +1,3 @@
import { Link } from "gatsby"
import React, { Fragment } from "react"
import { SEO } from "../components/SEO"
+1 -1
View File
@@ -1,6 +1,6 @@
import { graphql } from "gatsby"
import React, { Fragment } from "react"
import { MarkdownRemark, Query } from "../../generated/graphql"
import { MarkdownRemark } from "../../generated/graphql"
import { Markdown } from "../components/Markdown"
import { SEO } from "../components/SEO"
+1
View File
@@ -27,6 +27,7 @@
"no-eval": true,
"no-parameter-reassignment": true,
"no-submodule-imports": false,
"no-unused-variable": true,
"react-hooks-nesting": "error"
},