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

Commit 38bf12b

Browse files
committed
src/*: various fixes to make ESLint happy
1 parent 760e2e6 commit 38bf12b

15 files changed

Lines changed: 35 additions & 21 deletions

File tree

src/components/discover-cloud/contents.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ export const TabsContent = {
5555
given War Room.
5656
</TabsContentText>
5757
<TabsContentText>
58-
With Overview's composite charts, you can see your infrastructure from a single pane of
58+
With Overview&apos;s composite charts, you can see your infrastructure from a single pane of
5959
glass, discover trends or anomalies, then drill down by grouping metrics by node and
6060
jumping to single-node dashboards for root cause analysis.
6161
</TabsContentText>
6262
<TabsContentText>
63-
Here's an example of a composite chart visualizing Disk I/O bandwidth from 5 different
63+
Here&apos;s an example of a composite chart visualizing Disk I/O bandwidth from 5 different
6464
nodes in one chart.
6565
</TabsContentText>
6666
</>
@@ -75,8 +75,8 @@ export const TabsContent = {
7575
text: () => (
7676
<TabsContentText>
7777
The Nodes view in Netdata Cloud lets you see and customize key metrics from any number of
78-
Agent-monitored nodes and seamlessly navigate to any node's dashboard for troubleshooting
79-
performance issues or anomalies using Netdata's highly-granular metrics.
78+
Agent-monitored nodes and seamlessly navigate to any node&apos;s dashboard for troubleshooting
79+
performance issues or anomalies using Netdata&apos;s highly-granular metrics.
8080
</TabsContentText>
8181
),
8282
icon: "nodes_hollow",
@@ -88,8 +88,8 @@ export const TabsContent = {
8888
header: "Dashboards",
8989
text: () => (
9090
<TabsContentText>
91-
With Netdata Cloud, you can build new dashboards that target your infrastructure's unique
92-
needs. Put key metrics from any number of distributed systems in one place for a bird's eye
91+
With Netdata Cloud, you can build new dashboards that target your infrastructure&apos;s unique
92+
needs. Put key metrics from any number of distributed systems in one place for a bird&apos;s eye
9393
view of your infrastructure.
9494
</TabsContentText>
9595
),
@@ -103,7 +103,7 @@ export const TabsContent = {
103103
text: () => (
104104
<TabsContentText>
105105
The Alerts view gives you a high level of availability and performance information for every
106-
node you're monitoring with Netdata Cloud. It also offers an easy way to drill down into any
106+
node you&apos;re monitoring with Netdata Cloud. It also offers an easy way to drill down into any
107107
particular alert by taking the user to the dedicated alert view from where the user can run
108108
metrics correlation or take further troubleshooting steps.
109109
</TabsContentText>
@@ -149,19 +149,19 @@ export const TabsContent = {
149149
<>
150150
<TabsContentText>
151151
Data privacy is very important to us. We firmly believe that your data belongs to you.
152-
This is why we don't store any metric data in Netdata Cloud.
152+
This is why we don&apos;t store any metric data in Netdata Cloud.
153153
</TabsContentText>
154154
<TabsContentText>
155155
Your local installations of the Netdata Agent form the basis for the Netdata Cloud. All
156156
the data that you see in the web browser when using Netdata Cloud, is actually streamed
157157
directly from the Netdata Agent to the Netdata Cloud dashboard. The data passes through
158-
our systems, but it isn't stored. You can learn more about{" "}
158+
our systems, but it isn&apos;t stored. You can learn more about{" "}
159159
<Anchor
160160
target="_blank"
161161
rel="noopener noreferrer"
162162
href="https://learn.netdata.cloud/docs/agent/netdata-security"
163163
>
164-
the Agent's security design
164+
the Agent&apos;s security design
165165
</Anchor>{" "}
166166
design in the Agent documentation.
167167
</TabsContentText>

src/components/header/ACLK/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { UserStatus, NodeLiveness } from "@/src/domains/dashboard/components/migration-modal"
2+
import React from "react"
23

34
export type CloudConnectionProps = {
45
userStatus: UserStatus

src/components/header/ACLK/use-cloud-connection-status.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Text } from "@netdata/netdata-ui"
77
export const makeCloudConnectionStatusInfo = ({
88
nodeStatus,
99
userStatus,
10-
date,
10+
/* date, */
1111
}: CloudConnectionProps): ConnectionModalStatusContent => ({
1212
title: "Netdata Cloud connection status",
1313
text: {

src/components/sidebar/space/nodes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const getNodes = (hosts, hostname, hostsStatus) => {
3232

3333
const replicatedNodes = hosts
3434
.slice(1)
35-
.map(({ hostname }, index) => ({
35+
.map(({ hostname }, /* index */) => ({
3636
hostname,
3737
url: getNodeUrl(baseUrl, hostname),
3838
status: hostsStatus.find(host => host.hostname === hostname)?.reachable || false,

src/components/sidebar/space/prompts/offline/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import NoNetwork from "./noNetwork"
55
const OfflinePrompt = () => (
66
<Flex alignItems="center" background={["neutral", "regentgrey"]} column gap={1} padding={[10]}>
77
<TextSmall color="bright" strong textAlign="center">
8-
Can't connect to Netdata Cloud
8+
Can&apos;t connect to Netdata Cloud
99
</TextSmall>
1010
<NoNetwork />
1111
<TextNano color="bright" textAlign="center" margin={[2, 0, 0]}>

src/domains/chart/components/chart-legend-right.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ export const ChartLegendRight = ({
137137
return (
138138
<Fragment key={dimensionId}>
139139
{i !== 0 && <br />}
140-
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
141140
<span
142141
title={dimensionName}
143142
className={classNames(
@@ -166,7 +165,6 @@ export const ChartLegendRight = ({
166165
{" "}
167166
<LegendText id={chartUuid} index={i} />
168167
</span>
169-
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
170168
<span
171169
title={dimensionName}
172170
className={classNames(

src/domains/chart/components/lib-charts/google-chart.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { Attributes } from "domains/chart/utils/transformDataAttributes"
66
import { ChartMetadata, EasyPieChartData } from "domains/chart/chart-types"
77
import { loadGoogleVisualizationApi } from "domains/chart/utils/google-visualization-loader"
88

9+
/* global google */
10+
911
interface Props {
1012
attributes: Attributes
1113
chartData: EasyPieChartData

src/domains/chart/components/lib-charts/group-box-chart/kubernetes/chartOverview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import React, { memo } from "react"
99
import styled from "styled-components"
1010
import { Flex, Text } from "@netdata/netdata-ui"
11+
import { AppStateT } from "store/app-state"
1112
import { useSelector } from "store/redux-separate-context"
1213
import { useFormatters } from "domains/chart/utils/formatters"
1314
import { netdataDashboard } from "domains/dashboard/utils/netdata-dashboard"

src/domains/chart/hooks/use-proceeded-chart.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import React, { useRef, useCallback } from "react"
55
import { useToggle } from "react-use"
66

7+
/* global Dygraph */
8+
79
const useProceededChart = (
810
chartRef: any,
911
propsRef: any

src/domains/chart/utils/get-pan-and-zoom-step.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import React from "react"
2+
13
type GetPanAndZoomStep = (event: React.MouseEvent) => number
24
export const getPanAndZoomStep: GetPanAndZoomStep = (event) => {
35
if (event.ctrlKey) {

0 commit comments

Comments
 (0)