Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit f3859a4

Browse files
author
Joel Worrall
committed
chore: eslint fixes
1 parent 4272839 commit f3859a4

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

src/pages/instrumentation.js

+28-18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3-
import { graphql, Link } from 'gatsby';
3+
import { graphql } from 'gatsby';
44
import { get } from 'lodash';
55
import Layout from '../components/layout';
66
import SEO from '../components/seo';
@@ -14,8 +14,10 @@ export const query = graphql`
1414
allProjects(
1515
filter: {
1616
projectType: { eq: "newrelic" }
17-
projectTags:
18-
{ elemMatch: { slug: { in: ["exporter", "nri", "agent", "sdk", "cli" ] } }
17+
projectTags: {
18+
elemMatch: {
19+
slug: { in: ["exporter", "nri", "agent", "sdk", "cli"] }
20+
}
1921
}
2022
}
2123
) {
@@ -46,12 +48,22 @@ const InstrumentationPage = ({ data }) => {
4648
return p;
4749
});
4850

49-
const exporters = allProjects.filter(p => p.projectTags.find(t => t.slug === 'exporter'));
50-
const nris = allProjects.filter(p => p.projectTags.find(t => t.slug === 'nri'));
51-
const sdks = allProjects.filter(p => p.projectTags.find(t => t.slug === 'sdk'));
52-
const clis = allProjects.filter(p => p.projectTags.find(t => t.slug === 'cli'));
53-
const agents = allProjects.filter(p => p.projectTags.find(t => t.slug === 'agent'));
54-
//const opentelemetry = allProjects.filter(p => p.projectTags.find(t => t.slug === 'opentelemetry'));
51+
const exporters = allProjects.filter(p =>
52+
p.projectTags.find(t => t.slug === 'exporter')
53+
);
54+
const nris = allProjects.filter(p =>
55+
p.projectTags.find(t => t.slug === 'nri')
56+
);
57+
const sdks = allProjects.filter(p =>
58+
p.projectTags.find(t => t.slug === 'sdk')
59+
);
60+
const clis = allProjects.filter(p =>
61+
p.projectTags.find(t => t.slug === 'cli')
62+
);
63+
const agents = allProjects.filter(p =>
64+
p.projectTags.find(t => t.slug === 'agent')
65+
);
66+
// const opentelemetry = allProjects.filter(p => p.projectTags.find(t => t.slug === 'opentelemetry'));
5567

5668
return (
5769
<Layout
@@ -62,7 +74,7 @@ const InstrumentationPage = ({ data }) => {
6274
<SEO title="New Relic Open Source Instrumentation" />
6375
<PageHeading
6476
title="New Relic Open Source Instrumentation"
65-
subheader="Instrument everything, capture complete telemetry, and understand your digital systems better
77+
subheader="Instrument everything, capture complete telemetry, and understand your digital systems better
6678
with our open source instrumentation."
6779
/>
6880
<div className={styles.collectionListingContainer}>
@@ -71,7 +83,8 @@ const InstrumentationPage = ({ data }) => {
7183
Agents
7284
</h4>
7385
<p className={styles.collectionListingHeaderSectionDescription}>
74-
Easily send your telemetry data to New Relic One with our automated instrumentation
86+
Easily send your telemetry data to New Relic One with our automated
87+
instrumentation
7588
</p>
7689
</header>
7790
<div className={styles.collectionListing}>
@@ -113,7 +126,8 @@ const InstrumentationPage = ({ data }) => {
113126
Infrastructure Integrations
114127
</h4>
115128
<p className={styles.collectionListingHeaderSectionDescription}>
116-
Extend New Relic's Infrastructure instrumentation across your digital ecosystem
129+
Extend New Relic's Infrastructure instrumentation across your
130+
digital ecosystem
117131
</p>
118132
</header>
119133
<div className={styles.collectionListing}>
@@ -130,9 +144,7 @@ const InstrumentationPage = ({ data }) => {
130144
</div>
131145
<div className={styles.collectionListingContainer}>
132146
<header className={styles.collectionListingHeaderSection}>
133-
<h4 className={styles.collectionListingHeaderSectionHeading}>
134-
SDKs
135-
</h4>
147+
<h4 className={styles.collectionListingHeaderSectionHeading}>SDKs</h4>
136148
<p className={styles.collectionListingHeaderSectionDescription}>
137149
Quickly and easily build custom instrumentation into your software
138150
</p>
@@ -151,9 +163,7 @@ const InstrumentationPage = ({ data }) => {
151163
</div>
152164
<div className={styles.collectionListingContainer}>
153165
<header className={styles.collectionListingHeaderSection}>
154-
<h4 className={styles.collectionListingHeaderSectionHeading}>
155-
CLIs
156-
</h4>
166+
<h4 className={styles.collectionListingHeaderSectionHeading}>CLIs</h4>
157167
<p className={styles.collectionListingHeaderSectionDescription}>
158168
Add New Relic to your automated workflows
159169
</p>

0 commit comments

Comments
 (0)