Skip to content

Commit 101fa08

Browse files
committed
disable eslint camelcase
1 parent 04558cb commit 101fa08

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/react-charts/src/victory/components/ChartBar/examples/ChartBarAlerts.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable camelcase */
21
import {
32
Chart,
43
ChartAxis,
@@ -8,9 +7,11 @@ import {
87
ChartTooltip,
98
ChartVoronoiContainer
109
} from '@patternfly/react-charts/victory';
11-
10+
/* eslint-disable-next-line */
1211
import t_global_color_status_danger_100 from '@patternfly/react-tokens/dist/esm/t_global_color_status_danger_100';
12+
/* eslint-disable-next-line */
1313
import t_global_color_status_info_100 from '@patternfly/react-tokens/dist/esm/t_global_color_status_info_100';
14+
/* eslint-disable-next-line */
1415
import t_global_color_status_warning_100 from '@patternfly/react-tokens/dist/esm/t_global_color_status_warning_100';
1516

1617
interface AlertData {
@@ -76,17 +77,23 @@ export const ChartBarAlerts: React.FunctionComponent = () => {
7677
];
7778

7879
const legendData = [
80+
/* eslint-disable-next-line */
7981
{ name: 'Danger', symbol: { fill: t_global_color_status_danger_100.var } },
82+
/* eslint-disable-next-line */
8083
{ name: 'Info', symbol: { fill: t_global_color_status_info_100.var } },
84+
/* eslint-disable-next-line */
8185
{ name: 'Warning', symbol: { fill: t_global_color_status_warning_100.var } }
8286
];
8387

8488
const getSeverityColor = (severity) => {
8589
if (severity === 'danger') {
90+
/* eslint-disable-next-line */
8691
return t_global_color_status_danger_100.var;
8792
} else if (severity === 'warn') {
93+
/* eslint-disable-next-line */
8894
return t_global_color_status_warning_100.var;
8995
} else {
96+
/* eslint-disable-next-line */
9097
return t_global_color_status_info_100.var;
9198
}
9299
};

0 commit comments

Comments
 (0)