build: Replace Codelyzer and TSLint with Angular ESLint
Migrate from the deprecated TSLint to Angluar ESLint. Also fix current linting issues in the code, in particular: - Use strict equals operators (=== and !==) - Remove empty lifecycle methods (mostly ngOnInit) - Output bindings including aliases should not be named as standard dom events (submit) - Async pipe results should not be negated
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, Inject } from '@angular/core';
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
|
||||
/**
|
||||
@@ -10,12 +10,9 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
templateUrl: './completion-dialog.component.html',
|
||||
styleUrls: ['./completion-dialog.component.scss']
|
||||
})
|
||||
export class CompletionDialogComponent implements OnInit {
|
||||
export class CompletionDialogComponent {
|
||||
|
||||
constructor(public dialogRef: MatDialogRef<CompletionDialogComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, Inject } from '@angular/core';
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
|
||||
/**
|
||||
@@ -10,7 +10,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
templateUrl: './configuration-wizard.component.html',
|
||||
styleUrls: ['./configuration-wizard.component.scss']
|
||||
})
|
||||
export class ConfigurationWizardComponent implements OnInit {
|
||||
export class ConfigurationWizardComponent {
|
||||
|
||||
show: number;
|
||||
/**
|
||||
@@ -19,7 +19,4 @@ export class ConfigurationWizardComponent implements OnInit {
|
||||
constructor(public dialogRef: MatDialogRef<ConfigurationWizardComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-5
@@ -1,5 +1,5 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, Inject } from '@angular/core';
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
|
||||
/**
|
||||
@@ -10,7 +10,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
templateUrl: './continue-setup-dialog.component.html',
|
||||
styleUrls: ['./continue-setup-dialog.component.scss']
|
||||
})
|
||||
export class ContinueSetupDialogComponent implements OnInit {
|
||||
export class ContinueSetupDialogComponent {
|
||||
|
||||
/* Current Step Name*/
|
||||
stepName: number;
|
||||
@@ -23,7 +23,4 @@ export class ContinueSetupDialogComponent implements OnInit {
|
||||
this.stepName = data.stepName;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, Inject } from '@angular/core';
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
|
||||
/**
|
||||
@@ -10,7 +10,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
templateUrl: './next-step-dialog.component.html',
|
||||
styleUrls: ['./next-step-dialog.component.scss']
|
||||
})
|
||||
export class NextStepDialogComponent implements OnInit {
|
||||
export class NextStepDialogComponent {
|
||||
|
||||
/* Step Percentage */
|
||||
stepPercentage: number;
|
||||
@@ -29,7 +29,4 @@ export class NextStepDialogComponent implements OnInit {
|
||||
this.previousStepName = data.previousStepName;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user