Skip to content

Commit 8715232

Browse files
committed
lint
1 parent 1e871c2 commit 8715232

File tree

11 files changed

+25
-11
lines changed

11 files changed

+25
-11
lines changed

src/js/components/filters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class Filters {
182182
updateCategory(event) {
183183
// Get the techs associated with the selected category
184184
const selectedCategory = this.categories.find(category => category.category === event.target.value);
185-
let selectedTechs = selectedCategory?.technologies || [];
185+
let selectedTechs = selectedCategory?.technologies || [];
186186
if(event.target.value === 'ALL') {
187187
selectedTechs = this.technologies.map(technology => technology.technology);
188188
}

src/js/histogram.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Highcharts */
2+
13
import { Colors } from './colors';
24
import debounce from './debounce';
35
import { Metric } from './metric';
@@ -265,7 +267,7 @@ function drawHistogram(data, containerId, options) {
265267
const chart = document.getElementById(`${options.metric}-chart`);
266268
callOnceWhenVisible(chart, () => {
267269
drawChart(series, containerId, options);
268-
});
270+
})
269271
};
270272

271273
function drawChart(series, containerId, options) {

src/js/report.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global charts */
2+
13
import { Colors } from './colors';
24
import { Metric } from './metric';
35
import { prettyDate, drawMetricSummary } from './utils';

src/js/send-web-vitals.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global gtag, webVitals */
2+
13
function sendWebVitals() {
24

35
function getLoafAttribution(attribution) {

src/js/techreport/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Section */
2+
13
import Filters from '../components/filters';
24
import { Constants } from './utils/constants';
35
const { DrilldownHeader } = require("../components/drilldownHeader");
@@ -88,7 +90,7 @@ class TechReport {
8890
break;
8991

9092
case 'category':
91-
const category = this.filters.category || 'CMS';
93+
const category = this.filters.category || 'CMS';
9294
this.initializeReport();
9395
this.getCategoryData(category);
9496
break;

src/js/techreport/section.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Timeseries */
2+
13
import SummaryCard from "./summaryCards";
24
import TableLinked from "./tableLinked";
35

src/js/techreport/table.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function getColumnCell(columnConfig, data, date) {
9696
function getSubcategory(config) {
9797
const urlParams = new URLSearchParams(window.location.search);
9898
const urlSubcategory = urlParams.get(config.param);
99-
const subcategory = urlSubcategory || config.default || '';
99+
const subcategory = urlSubcategory || config.default || '';
100100

101101
return subcategory;
102102
}

src/js/techreport/timeseries.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Highcharts */
2+
13
import { Table } from "./table";
24
import { DataUtils } from "./utils/data";
35
import { UIUtils } from "./utils/ui";
@@ -120,7 +122,7 @@ class Timeseries {
120122
/* Get the currently selected subcategory based on the URL */
121123
const urlParams = new URLSearchParams(window.location.search);
122124
const urlSubcategory = urlParams.get(config.param);
123-
const subcategory = urlSubcategory || config.default;
125+
const subcategory = urlSubcategory || config.default;
124126

125127
/* Remove the previous content */
126128
container.innerHTML = '';
@@ -182,7 +184,7 @@ class Timeseries {
182184
/* Get the currently selected subcategory based on the URL */
183185
const urlParams = new URLSearchParams(window.location.search);
184186
const urlSubcategory = urlParams.get(config.param);
185-
const subcategory = urlSubcategory || config.default;
187+
const subcategory = urlSubcategory || config.default;
186188

187189
/* Get settings */
188190
const metric = component.dataset.metric;
@@ -398,7 +400,7 @@ class Timeseries {
398400
const config = this.pageConfig[this.id]?.viz;
399401
const urlParams = new URLSearchParams(window.location.search);
400402
const urlSubcategory = urlParams.get(config.param);
401-
const subcategory = urlSubcategory || config.default;
403+
const subcategory = urlSubcategory || config.default;
402404

403405
// Get default colors
404406
const colors = this.defaults(config)?.chart?.colors;
@@ -412,7 +414,7 @@ class Timeseries {
412414
const value = row?.[endpoint]?.find(row => row.name === subcategory)?.[client]?.[metric];
413415
return {
414416
x: new Date(row.date).getTime(),
415-
y: value || 0,
417+
y: value || 0,
416418
};
417419
});
418420

src/js/timeseries.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Highcharts */
2+
13
import Changelog from './changelog';
24
import { Colors } from './colors';
35
import debounce from './debounce';

tools/generate/generate_js.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fs = require('fs-extra');
22

3-
node_module_files = [
3+
const node_module_files = [
44
'highcharts/highcharts.js',
55
'highcharts/highcharts-more.js',
66
'highcharts/highstock.js',

tools/generate/generate_sitemap.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ const get_lastmod_date = (file) => {
6565
const convert_file_name = (url) => {
6666
if ( url.substr(url.length - 10) == "index.html" ) {
6767
return url.substr(0, url.length - 10);
68-
};
68+
}
6969
if ( url.endsWith(".html")) {
7070
return url.substr(0, url.length - 5).replace(/_/g,'-');
71-
};
71+
}
7272
return url.replace(/_/g,'-');
7373
};
7474

0 commit comments

Comments
 (0)