Skip to content

Commit 8b02771

Browse files
committed
Merge remote-tracking branch 'origin/develop' into jerel/data-dictionary-nav
2 parents a66e72e + 30d08ed commit 8b02771

File tree

9 files changed

+36
-2
lines changed

9 files changed

+36
-2
lines changed

.github/workflows/validate-pr.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,29 @@ jobs:
7575

7676
- name: Jest test
7777
run: yarn test --passWithNoTests
78+
79+
lint:
80+
name: Run Eslint
81+
runs-on: ubuntu-latest
82+
steps:
83+
- name: Checkout repository
84+
uses: actions/checkout@v2
85+
86+
- name: Setup Node.js
87+
uses: actions/setup-node@v2
88+
with:
89+
node-version: 12
90+
91+
- name: Cache dependencies
92+
id: yarn-cache
93+
uses: actions/cache@v2
94+
with:
95+
path: '**/node_modules'
96+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
97+
98+
- name: Install dependencies
99+
if: steps.yarn-cache.outputs.cache-hit != 'true'
100+
run: yarn install --frozen-lockfile
101+
102+
- name: Run Eslint
103+
run: yarn lint

src/components/TableOfContents.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React, { useEffect, useMemo, useRef } from 'react';
1+
import React, { useMemo } from 'react';
22
import PropTypes from 'prop-types';
33
import { css } from '@emotion/core';
44
import { graphql } from 'gatsby';
5-
import { useMedia, usePrevious } from 'react-use';
5+
import { useMedia } from 'react-use';
66
import { Icon, PageTools } from '@newrelic/gatsby-theme-newrelic';
77
import useActiveHash from '../hooks/useActiveHash';
88
import GithubSlugger from 'github-slugger';

src/pages/whats-new.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const WhatsNew = ({ data, location }) => {
9090

9191
WhatsNew.propTypes = {
9292
data: PropTypes.object.isRequired,
93+
location: PropTypes.object.isRequired,
9394
};
9495

9596
export const pageQuery = graphql`

src/templates/apiLandingPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const pageQuery = graphql`
5959

6060
ApiIndexPage.propTypes = {
6161
data: PropTypes.object.isRequired,
62+
location: PropTypes.object.isRequired,
6263
};
6364

6465
export default ApiIndexPage;

src/templates/indexPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const IndexPage = ({ data, pageContext, location }) => {
3131
IndexPage.propTypes = {
3232
data: PropTypes.object.isRequired,
3333
pageContext: PropTypes.object.isRequired,
34+
location: PropTypes.object.isRequired,
3435
};
3536

3637
export const pageQuery = graphql`

src/templates/landingPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const LandingPage = ({ data, location }) => {
5858

5959
LandingPage.propTypes = {
6060
data: PropTypes.object.isRequired,
61+
location: PropTypes.object.isRequired,
6162
};
6263

6364
export const pageQuery = graphql`

src/templates/releaseNote.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const ReleaseNoteTemplate = ({ data, location }) => {
9191

9292
ReleaseNoteTemplate.propTypes = {
9393
data: PropTypes.object.isRequired,
94+
location: PropTypes.object.isRequired,
9495
};
9596

9697
export const pageQuery = graphql`

src/templates/releaseNoteLandingPage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ const ReleaseNoteLandingPage = ({ data, pageContext, location }) => {
125125

126126
ReleaseNoteLandingPage.propTypes = {
127127
data: PropTypes.object.isRequired,
128+
location: PropTypes.object.isRequired,
129+
pageContext: PropTypes.object.isRequired,
128130
};
129131

130132
export const pageQuery = graphql`

src/templates/whatsNew.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const WhatsNewTemplate = ({ data, location }) => {
8181

8282
WhatsNewTemplate.propTypes = {
8383
data: PropTypes.object.isRequired,
84+
location: PropTypes.object.isRequired,
8485
};
8586

8687
export const pageQuery = graphql`

0 commit comments

Comments
 (0)