Skip to content

Commit 2900811

Browse files
authored
UI: add and apply ESLint rule eol-last (OpenEMS#2431)
1 parent 554852e commit 2900811

File tree

298 files changed

+302
-298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+302
-298
lines changed

ui/.eslintrc.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
"comma-dangle": [
6161
"error",
6262
"never"
63+
],
64+
"eol-last": [
65+
"error",
66+
"always"
6367
]
6468
}
6569
},
@@ -73,4 +77,4 @@
7377
"rules": {}
7478
}
7579
]
76-
}
80+
}

ui/src/app/app-routing.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ export const appRoutingProviders: any[] = [];
131131
],
132132
exports: [RouterModule]
133133
})
134-
export class AppRoutingModule { }
134+
export class AppRoutingModule { }

ui/src/app/appupdateservice.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ export class LogUpdateService {
4747
}
4848
});
4949
}
50-
}
50+
}

ui/src/app/changelog/view/component/changelog.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ export class ChangelogComponent implements OnInit {
4444
}
4545
];
4646

47-
}
47+
}

ui/src/app/changelog/view/component/changelog.constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ export class Library {
105105
// private to disallow creating other instances of this type
106106
private constructor(public readonly name: string, public readonly url: string) {
107107
}
108-
}
108+
}

ui/src/app/changelog/view/view.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import { Component } from "@angular/core";
44
selector: 'changelogViewComponent',
55
templateUrl: './view.html'
66
})
7-
export class ChangelogViewComponent { }
7+
export class ChangelogViewComponent { }

ui/src/app/edge/edge.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ export class EdgeComponent implements OnInit, OnDestroy {
5050
this.edge.unsubscribeChannels(this.websocket, '');
5151
}
5252

53-
}
53+
}

ui/src/app/edge/history/abstracthistorychart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,4 +292,4 @@ export abstract class AbstractHistoryChart {
292292
this.service.stopSpinner(this.spinnerId);
293293
}
294294

295-
}
295+
}

ui/src/app/edge/history/abstracthistorywidget.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ export abstract class AbstractHistoryWidget {
9696
* Updates and Fills the Chart
9797
*/
9898
protected abstract updateValues()
99-
}
99+
}

ui/src/app/edge/history/channelthreshold/channelthresholdchartoverview/channelthresholdchartoverview.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ export class ChannelthresholdChartOverviewComponent implements OnInit {
4747
onNotifyTotal(showTotal: boolean): void {
4848
this.showTotal = showTotal;
4949
}
50-
}
50+
}

ui/src/app/edge/history/channelthreshold/singlechart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ export class ChannelthresholdSingleChartComponent extends AbstractHistoryChart i
107107
public getChartHeight(): number {
108108
return window.innerHeight / 1.3;
109109
}
110-
}
110+
}

ui/src/app/edge/history/channelthreshold/totalchart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ export class ChannelthresholdTotalChartComponent extends AbstractHistoryChart im
129129
public getChartHeight(): number {
130130
return window.innerHeight / 1.3;
131131
}
132-
}
132+
}

ui/src/app/edge/history/channelthreshold/widget.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ export class ChannelthresholdWidgetComponent extends AbstractHistoryWidget imple
6666
resolve(channeladdresses);
6767
});
6868
}
69-
}
69+
}

ui/src/app/edge/history/chpsoc/chart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,4 @@ export class ChpSocChartComponent extends AbstractHistoryChart implements OnInit
173173
public getChartHeight(): number {
174174
return window.innerHeight / 1.3;
175175
}
176-
}
176+
}

ui/src/app/edge/history/chpsoc/chpsocchartoverview/chpsocchartoverview.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ export class ChpSocChartOverviewComponent implements OnInit {
2929
});
3030
});
3131
}
32-
}
32+
}

ui/src/app/edge/history/common/autarchy/chart/chart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ export class ChartComponent extends AbstractHistoryChart {
5050
}]
5151
};
5252
}
53-
}
53+
}

ui/src/app/edge/history/common/autarchy/overview/overview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import { AbstractHistoryChartOverview } from 'src/app/shared/genericComponents/c
44
@Component({
55
templateUrl: './overview.html'
66
})
7-
export class OverviewComponent extends AbstractHistoryChartOverview { }
7+
export class OverviewComponent extends AbstractHistoryChartOverview { }

ui/src/app/edge/history/common/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ import { Common_Selfconsumption } from './selfconsumption/SelfConsumption';
2222
Common_Selfconsumption
2323
]
2424
})
25-
export class Common { }
25+
export class Common { }

ui/src/app/edge/history/common/energy/chart/channels.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3491,4 +3491,4 @@ export namespace History {
34913491
]
34923492
})
34933493
};
3494-
}
3494+
}

ui/src/app/edge/history/common/energy/chart/chart.constants.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ export const LABELS = (timestamps: string[]): OeChartTester.Dataset.LegendLabel
3030
timestamps: timestamps.map(element => new Date(element))
3131
});
3232

33-
export const OPTIONS = (options: OeChartTester.Dataset.Option): OeChartTester.Dataset.Option => options;
33+
export const OPTIONS = (options: OeChartTester.Dataset.Option): OeChartTester.Dataset.Option => options;

ui/src/app/edge/history/common/energy/chart/chart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,4 +232,4 @@ export class ChartComponent extends AbstractHistoryChart {
232232
protected override getChartHeight(): number {
233233
return this.service.deviceHeight / 2;
234234
}
235-
}
235+
}

ui/src/app/edge/history/common/grid/chart/chart.constants.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ export function expectView(config: EdgeConfig, testContext: TestContext, chartTy
1010
.apply(ChartComponent
1111
.getChartData(DummyConfig.convertDummyEdgeConfigToRealEdgeConfig(config), chartType, testContext.translate, showPhases), chartType, channels, testContext)))
1212
.toEqual(removeFunctions(view));
13-
};
13+
};

ui/src/app/edge/history/common/grid/chart/chart.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ describe('History Grid', () => {
7676
}, false);
7777
}
7878
});
79-
});
79+
});

ui/src/app/edge/history/common/grid/chart/chart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ export class ChartComponent extends AbstractHistoryChart {
103103
}]
104104
};
105105
}
106-
}
106+
}

ui/src/app/edge/history/common/grid/flat/flat.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ import { AbstractFlatWidget } from 'src/app/shared/genericComponents/flat/abstra
55
selector: 'gridWidget',
66
templateUrl: './flat.html'
77
})
8-
export class FlatComponent extends AbstractFlatWidget { }
8+
export class FlatComponent extends AbstractFlatWidget { }

ui/src/app/edge/history/common/grid/overview/overview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import { AbstractHistoryChartOverview } from 'src/app/shared/genericComponents/c
44
@Component({
55
templateUrl: './overview.html'
66
})
7-
export class OverviewComponent extends AbstractHistoryChartOverview { }
7+
export class OverviewComponent extends AbstractHistoryChartOverview { }

ui/src/app/edge/history/common/production/chart/chargerChart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ export class ChargerChartComponent extends AbstractHistoryChart {
4141
}]
4242
};
4343
}
44-
}
44+
}

ui/src/app/edge/history/common/production/chart/productionMeterChart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ export class ProductionMeterChartComponent extends AbstractHistoryChart {
6868
}]
6969
};
7070
}
71-
}
71+
}

ui/src/app/edge/history/common/production/chart/totalAcChart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ export class TotalAcChartComponent extends AbstractHistoryChart {
7373
}]
7474
};
7575
}
76-
}
76+
}

ui/src/app/edge/history/common/production/chart/totalChart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,4 @@ export class TotalChartComponent extends AbstractHistoryChart {
168168
return window.innerHeight / 2.3;
169169
}
170170
}
171-
}
171+
}

ui/src/app/edge/history/common/production/chart/totalDcChart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ export class TotalDcChartComponent extends AbstractHistoryChart {
4545
}]
4646
};
4747
}
48-
}
48+
}

ui/src/app/edge/history/common/production/overview/overview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ export class OverviewComponent extends AbstractHistoryChartOverview {
2121
.filter(component => component.isEnabled && this.config.isProducer(component));
2222
return [];
2323
}
24-
}
24+
}

ui/src/app/edge/history/common/selfconsumption/SelfConsumption.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ import { OverviewComponent } from "./overview/overview";
2424
OverviewComponent
2525
]
2626
})
27-
export class Common_Selfconsumption { }
27+
export class Common_Selfconsumption { }

ui/src/app/edge/history/common/selfconsumption/overview/overview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import { AbstractHistoryChartOverview } from 'src/app/shared/genericComponents/c
44
@Component({
55
templateUrl: './overview.html'
66
})
7-
export class OverviewComponent extends AbstractHistoryChartOverview { }
7+
export class OverviewComponent extends AbstractHistoryChartOverview { }

ui/src/app/edge/history/consumption/consumptionchartoverview/consumptionchartoverview.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ export class ConsumptionChartOverviewComponent implements OnInit {
5353
onNotifyTotal(showTotal: boolean): void {
5454
this.showTotal = showTotal;
5555
}
56-
}
56+
}

ui/src/app/edge/history/consumption/evcschart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ export class ConsumptionEvcsChartComponent extends AbstractHistoryChart implemen
113113
public getChartHeight(): number {
114114
return window.innerHeight / 21 * 9;
115115
}
116-
}
116+
}

ui/src/app/edge/history/consumption/meterchart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@ export class ConsumptionMeterChartComponent extends AbstractHistoryChart impleme
117117
public getChartHeight(): number {
118118
return window.innerHeight / 21 * 9;
119119
}
120-
}
120+
}

ui/src/app/edge/history/consumption/singlechart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,4 @@ export class ConsumptionSingleChartComponent extends AbstractHistoryChart implem
219219
return window.innerHeight / 21 * 9;
220220
}
221221
}
222-
}
222+
}

ui/src/app/edge/history/consumption/totalchart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,4 +363,4 @@ export class ConsumptionTotalChartComponent extends AbstractHistoryChart impleme
363363
public getChartHeight(): number {
364364
return window.innerHeight / 1.3;
365365
}
366-
}
366+
}

ui/src/app/edge/history/delayedselltogrid/chart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,4 @@ export class DelayedSellToGridChartComponent extends AbstractHistoryChart implem
217217
public getChartHeight(): number {
218218
return window.innerHeight / 1.3;
219219
}
220-
}
220+
}

ui/src/app/edge/history/delayedselltogrid/symmetricpeakshavingchartoverview/delayedselltogridchartoverview.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export class DelayedSellToGridChartOverviewComponent implements OnInit {
2626
});
2727
});
2828
}
29-
}
29+
}

ui/src/app/edge/history/fixdigitaloutput/fixdigitaloutputchartoverview/fixdigitaloutputchartoverview.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ export class FixDigitalOutputChartOverviewComponent implements OnInit {
4545
onNotifyTotal(showTotal: boolean): void {
4646
this.showTotal = showTotal;
4747
}
48-
}
48+
}

ui/src/app/edge/history/fixdigitaloutput/singlechart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ export class FixDigitalOutputSingleChartComponent extends AbstractHistoryChart i
107107
public getChartHeight(): number {
108108
return window.innerHeight / 1.3;
109109
}
110-
}
110+
}

ui/src/app/edge/history/fixdigitaloutput/totalchart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ export class FixDigitalOutputTotalChartComponent extends AbstractHistoryChart im
127127
public getChartHeight(): number {
128128
return window.innerHeight / 1.3;
129129
}
130-
}
130+
}

ui/src/app/edge/history/fixdigitaloutput/widget.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ export class FixDigitalOutputWidgetComponent extends AbstractHistoryWidget imple
6666
resolve(channeladdresses);
6767
});
6868
}
69-
}
69+
}

ui/src/app/edge/history/grid/chart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,4 @@ export class GridChartComponent extends AbstractHistoryChart implements OnInit,
192192
public getChartHeight(): number {
193193
return window.innerHeight / 1.3;
194194
}
195-
}
195+
}

ui/src/app/edge/history/gridoptimizedcharge/chart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,4 @@ export class GridOptimizedChargeChartComponent extends AbstractHistoryChart impl
267267
return window.innerHeight / 21 * 9;
268268
}
269269

270-
}
270+
}

ui/src/app/edge/history/gridoptimizedcharge/gridoptimizedchargechartoverview/gridoptimizedchargechartoverview.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ export class GridOptimizedChargeChartOverviewComponent implements OnInit {
2929
});
3030
});
3131
}
32-
}
32+
}

ui/src/app/edge/history/gridoptimizedcharge/sellToGridLimitChart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,4 @@ export class SellToGridLimitChartComponent extends AbstractHistoryChart implemen
206206
return window.innerHeight / 21 * 9;
207207
}
208208

209-
}
209+
}

ui/src/app/edge/history/gridoptimizedcharge/widget.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ export class GridOptimizedChargeWidgetComponent extends AbstractHistoryWidget im
8484
resolve(channeladdresses);
8585
});
8686
}
87-
}
87+
}

ui/src/app/edge/history/heatingelement/chart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ export class HeatingelementChartComponent extends AbstractHistoryChart implement
119119
public getChartHeight(): number {
120120
return window.innerHeight / 1.3;
121121
}
122-
}
122+
}

ui/src/app/edge/history/heatingelement/heatingelementchartoverview/heatingelementchartoverview.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ export class HeatingelementChartOverviewComponent implements OnInit {
2929
});
3030
});
3131
}
32-
}
32+
}

ui/src/app/edge/history/heatingelement/widget.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ export class HeatingelementWidgetComponent extends AbstractHistoryWidget impleme
7474
resolve(channeladdresses);
7575
});
7676
}
77-
}
77+
}

ui/src/app/edge/history/heatpump/chart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,4 @@ export class HeatPumpChartComponent extends AbstractHistoryChart implements OnIn
145145
public getChartHeight(): number {
146146
return window.innerHeight / 1.3;
147147
}
148-
}
148+
}

ui/src/app/edge/history/heatpump/heatpumpchartoverview/heatpumpchartoverview.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ export class HeatPumpChartOverviewComponent implements OnInit {
3131
});
3232
});
3333
}
34-
}
34+
}

0 commit comments

Comments
 (0)