aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/charts
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2019-03-25 14:10:40 +0100
committersonartech <sonartech@sonarsource.com>2019-03-29 09:44:59 +0100
commit1355d080cfa97eadfde70e6945e30f49a38ac28e (patch)
tree2e5b41f5898b00249f51bfd5b5267580c2e1b2ae /server/sonar-web/src/main/js/components/charts
parenta289d7ab1248e465064129dc0e4b8d858fee2b79 (diff)
downloadsonarqube-1355d080cfa97eadfde70e6945e30f49a38ac28e.tar.gz
sonarqube-1355d080cfa97eadfde70e6945e30f49a38ac28e.zip
Update prettier to last version
* Prettier format all modules
Diffstat (limited to 'server/sonar-web/src/main/js/components/charts')
-rw-r--r--server/sonar-web/src/main/js/components/charts/LineChart.tsx12
1 files changed, 7 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/components/charts/LineChart.tsx b/server/sonar-web/src/main/js/components/charts/LineChart.tsx
index 39aaf3d2f82..a937fa7e7fd 100644
--- a/server/sonar-web/src/main/js/components/charts/LineChart.tsx
+++ b/server/sonar-web/src/main/js/components/charts/LineChart.tsx
@@ -74,11 +74,13 @@ export default class LineChart extends React.PureComponent<Props> {
return null;
}
- const points = this.props.data.filter(point => point.y != null).map((point, index) => {
- const x = xScale(point.x);
- const y = yScale(point.y || 0);
- return <circle className="line-chart-point" cx={x} cy={y} key={index} r="3" />;
- });
+ const points = this.props.data
+ .filter(point => point.y != null)
+ .map((point, index) => {
+ const x = xScale(point.x);
+ const y = yScale(point.y || 0);
+ return <circle className="line-chart-point" cx={x} cy={y} key={index} r="3" />;
+ });
return <g>{points}</g>;
}