Commit 64c97f7e authored by Lint Action's avatar Lint Action

Fix code style issues with ESLint

parent f3c51357
......@@ -8,9 +8,7 @@
"jsx": true
}
},
"ignorePatterns": [
"node_modules/**/*"
],
"ignorePatterns": ["node_modules/**/*"],
"settings": {
"react": {
"version": "detect"
......@@ -29,4 +27,4 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off"
}
}
\ No newline at end of file
}
......@@ -78,28 +78,28 @@ const LineChart = ({
layout: {
backgroundColor: 'transparent',
textColor: textColor,
fontFamily: 'Inter',
fontFamily: 'Inter'
},
rightPriceScale: {
scaleMargins: {
top: 0.1,
bottom: 0.1,
bottom: 0.1
},
borderVisible: false,
borderVisible: false
},
timeScale: {
borderVisible: false,
borderVisible: false
},
watermark: {
color: 'rgba(0, 0, 0, 0)',
color: 'rgba(0, 0, 0, 0)'
},
grid: {
horzLines: {
visible: false,
visible: false
},
vertLines: {
visible: false,
},
visible: false
}
},
crosshair: {
horzLine: {
......@@ -107,16 +107,16 @@ const LineChart = ({
style: 3,
width: 1,
color: '#505050',
labelBackgroundColor: color,
labelBackgroundColor: color
},
vertLine: {
visible: true,
style: 3,
width: 1,
color: '#505050',
labelBackgroundColor: color,
},
},
labelBackgroundColor: color
}
}
})
const series = chart.addAreaSeries({
......@@ -124,13 +124,13 @@ const LineChart = ({
topColor: darken(0.4, color),
bottomColor: theme.bg1,
lineWidth: 2,
priceLineVisible: false,
priceLineVisible: false
})
series.setData(data)
// update the title when hovering on the chart
chart.subscribeCrosshairMove(function (param) {
chart.subscribeCrosshairMove(function(param) {
if (
chartRef?.current &&
(param === undefined ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment