Fix Bug 2121: NG-UI uses unmaintained Chokidar version
- Upgraded Angular from 11 to 14 version to remove chokidar
unmaintained version.
- Changed linting tool tslint to eslint for angular 14 as tslint
is depreacted after angular 12
- Resolved linting issues from code
Change-Id: I00e908ab651db0f080e0d18a9d1c9711f4e36b91
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
diff --git a/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts b/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts
index f580e8a..ac0b502 100644
--- a/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts
+++ b/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts
@@ -352,7 +352,9 @@
private arrayOfLocation(): void {
this.getLocation = [];
this.locationData.filter((item: VimAccountDetails) => {
+ // eslint-disable-next-line no-prototype-builtins
if (item.hasOwnProperty('config')) {
+ // eslint-disable-next-line no-prototype-builtins
if (item.config.hasOwnProperty('location')) {
this.getLocation.push({ name: item.name, location: item.config.location, id: item._id });
}
@@ -429,12 +431,10 @@
}
/** Add a click handler to the map to render the popup. @private */
private markerClickEvent(closer: HTMLElement, overlay: Overlay): void {
- // tslint:disable-next-line: no-any
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
this.map.on('singleclick', (evt: any) => {
const feature: Feature = this.map.forEachFeatureAtPixel(evt.pixel,
- (f: Feature) => {
- return f;
- });
+ (f: Feature) => f);
if (feature) {
this.setCoordinates(feature, overlay);
} else {
@@ -449,7 +449,7 @@
};
}
/** Set the coordinates point if the feature is available @private */
- // tslint:disable-next-line: no-any
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
private setCoordinates(feature: any, overlay: Overlay): void {
this.popupData = '';
this.popupData += '<h3 class="popover-header">' + feature.values_.vimName + '- (' + feature.values_.location + ')</h3>';