From 253d90b46b0cac230f138818c30002dbb9bd71e2 Mon Sep 17 00:00:00 2001 From: Megan Riel-Mehan Date: Fri, 24 Aug 2018 16:34:59 -0700 Subject: [PATCH] fixed linting errors --- types/plotly.js/test/index-tests.ts | 66 ++++++++++++++--------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/types/plotly.js/test/index-tests.ts b/types/plotly.js/test/index-tests.ts index 0b0937eb63..d4b274b321 100644 --- a/types/plotly.js/test/index-tests.ts +++ b/types/plotly.js/test/index-tests.ts @@ -9,55 +9,55 @@ const graphDiv = '#test'; // https://plot.ly/javascript/2d-density-plots/ (() => { - const testrows =[ + const testrows = [ { - "country": "Afghanistan", - "year": 2002, - "pop": 8425333, - "continent": "Asia", - "lifeExp": 28.801, - "gdpPercap": 779.4453145 + country: "Afghanistan", + year: 2002, + pop: 8425333, + continent: "Asia", + lifeExp: 28.801, + gdpPercap: 779.4453145 }, { - "country": "Argentina", - "year": 2002, - "pop": 38331121, - "continent": "Americas", - "lifeExp": 74.34, - "gdpPercap": 8797.640716 + country: "Argentina", + year: 2002, + pop: 38331121, + continent: "Americas", + lifeExp: 74.34, + gdpPercap: 8797.640716 }, { - "country": "Australia", - "year": 2002, - "pop": 13177000, - "continent": "Oceania", - "lifeExp": 71.93, - "gdpPercap": 16788.62948 + country: "Australia", + year: 2002, + pop: 13177000, + continent: "Oceania", + lifeExp: 71.93, + gdpPercap: 16788.62948 }, { - "country": "Austria", - "year": 2002, - "pop": 7914969, - "continent": "Europe", - "lifeExp": 76.04, - "gdpPercap": 27042.01868 + country: "Austria", + year: 2002, + pop: 7914969, + continent: "Europe", + lifeExp: 76.04, + gdpPercap: 27042.01868 }, { - "country": "Austria", - "year": 2001, - "pop": 7914969, - "continent": "Europe", - "lifeExp": 76.04, - "gdpPercap": 27042.01868 + country: "Austria", + year: 2001, + pop: 7914969, + continent: "Europe", + lifeExp: 76.04, + gdpPercap: 27042.01868 }, - ] + ]; interface DataRow { [key: string]: string | number; } function unpack(rows: DataRow[], key: string) { - return rows.map(function (row: DataRow) { return row[key]; }); + return rows.map((row: DataRow) => row[key]); } const trace1 = {