From 31a04b5a77de0faddcdd4be12d2325dc022ee336 Mon Sep 17 00:00:00 2001 From: rug Date: Thu, 15 Feb 2024 15:41:44 +0100 Subject: [PATCH 1/2] Removing unneeded configs --- .eslintignore | 4 +--- package.json | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.eslintignore b/.eslintignore index b63a080a..2b00be30 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,9 +2,7 @@ node_modules # don't lint build output (make sure it's set to your correct build folder name) dist -# don't lint libraries -src/libraries/** *.d.ts *.js # don't lint settings -*.snyk \ No newline at end of file +*.snyk diff --git a/package.json b/package.json index 22c7c95f..c71d04b1 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,9 @@ "author": "UI Components Team", "license": "BSD-3-Clause", "scripts": { - "build": "tsc", - "lint": "eslint ./src/**/*.ts", - "lintfix": "eslint --fix ./src/**/*.ts", + "build": "tsc && npm run lint", + "lint": "eslint . --ext .ts", + "lintfix": "eslint . --fix --ext .ts", "prettier": "prettier --config ./.prettierrc.json --write \"**/*.+(js|ts|css)\"", "setup": "npm i && tsc", "test": "echo \"Error: no test specified\" && exit 1", From a681ddb6ea6e10c124d0b85343236bee4325ce3b Mon Sep 17 00:00:00 2001 From: rug Date: Thu, 15 Feb 2024 15:41:51 +0100 Subject: [PATCH 2/2] Fix lint --- src/Providers/Maps/Leaflet/Constants/Marker/Events.ts | 1 + src/Providers/Maps/Leaflet/Constants/OSMap/Events.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/Providers/Maps/Leaflet/Constants/Marker/Events.ts b/src/Providers/Maps/Leaflet/Constants/Marker/Events.ts index af529459..49c7bd31 100644 --- a/src/Providers/Maps/Leaflet/Constants/Marker/Events.ts +++ b/src/Providers/Maps/Leaflet/Constants/Marker/Events.ts @@ -6,6 +6,7 @@ namespace Provider.Maps.Leaflet.Constants.Marker { export enum ProviderEventNames { click = 'click', contextmenu = 'contextmenu', + // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values rightclick = 'contextmenu', dblclick = 'dblclick', drag = 'drag', diff --git a/src/Providers/Maps/Leaflet/Constants/OSMap/Events.ts b/src/Providers/Maps/Leaflet/Constants/OSMap/Events.ts index 14addf6a..5c889087 100644 --- a/src/Providers/Maps/Leaflet/Constants/OSMap/Events.ts +++ b/src/Providers/Maps/Leaflet/Constants/OSMap/Events.ts @@ -10,6 +10,7 @@ namespace Provider.Maps.Leaflet.Constants.OSMap { export enum ProviderEventNames { click = 'click', contextmenu = 'contextmenu', + // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values rightclick = 'contextmenu', dblclick = 'dblclick', drag = 'drag', @@ -20,9 +21,11 @@ namespace Provider.Maps.Leaflet.Constants.OSMap { mouseover = 'mouseover', resize = 'resize', tilesloaded = 'load', + // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values load = 'load', zoom_changed = 'zoom', zoom_end = 'zoomend', + // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values zoom = 'zoom', } }