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/environments/environment.prod.ts b/src/environments/environment.prod.ts
index 440bfd1..9ab1c1f 100644
--- a/src/environments/environment.prod.ts
+++ b/src/environments/environment.prod.ts
@@ -22,7 +22,7 @@
* The list of file replacements can be found in `angular.json`.
*/
-import { version } from 'PACKAGEJSON';
+import PACKAGEJSON from 'PACKAGEJSON';
/** OSM_Admin URL @constant */
const OSM_ADMIN_ENDPOINT: string = 'osm/admin/v1/';
@@ -43,16 +43,15 @@
/** OSM Version @constant */
const OSM_VERSION: string = 'osm/version';
/** Grafana End-Point @constant */
-// tslint:disable-next-line: no-http-string
+// eslint-disable-next-line @microsoft/sdl/no-insecure-url
const GRAFANA_ENDPOINT: string = 'http://' + window.location.hostname + ':3000';
/** Exporting a const @exports environment */
-// tslint:disable-next-line: typedef
export const environment = {
production: true,
packageSize: 50,
paginationNumber: 10, //Possible values are 10, 25, 50, 100
- packageVersion: version,
+ packageVersion: PACKAGEJSON.version,
GENERATETOKEN_URL: OSM_ADMIN_ENDPOINT + 'tokens',
PROJECTS_URL: OSM_ADMIN_ENDPOINT + 'projects',
USERS_URL: OSM_ADMIN_ENDPOINT + 'users',