Skip to content

Commit

Permalink
style: fix lint issues in code 🧹
Browse files Browse the repository at this point in the history
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
  • Loading branch information
vinayakkulkarni committed Apr 19, 2023
1 parent ee54024 commit 1e7a284
Show file tree
Hide file tree
Showing 23 changed files with 5 additions and 46 deletions.
1 change: 0 additions & 1 deletion assets/workers/csv.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { v4 as uuid } from 'uuid';

/**
* Transforms a CSV to GeoJSON
*
* @param {DSVRowArray<string>} payload - CSV data parsed by csvParse()
* @returns {Promise<ExpenseFeature>} - GeoJSON data
*/
Expand Down
13 changes: 0 additions & 13 deletions components/map/CommonMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@
/**
* This function syncs the loaded & style-changed
* variables in parent components
*
* @param {Map} e - Mapbox GL Map object
* @returns {void}
*/
Expand All @@ -221,7 +220,6 @@
/**
* Sync the map
*
* @returns {void}
*/
function syncMap(): void {
Expand Down Expand Up @@ -270,7 +268,6 @@
/**
* When user is entered the map
* canvas
*
* @param {MapMouseEvent | MouseEvent } e - Mapbox Event data
* @returns {void} void
*/
Expand All @@ -285,7 +282,6 @@
/**
* This function emits a click event to the
* parent component
*
* @param {MapMouseEvent} e - Mapbox Event
* @returns {void}
*/
Expand All @@ -299,7 +295,6 @@
/**
* When user changes the North direction
* or changes the pitch
*
* @returns {void} void
*/
function onMapPitchEnd(): void {
Expand All @@ -309,15 +304,13 @@
/**
* When the map completes zoom
* end event
*
* @returns {void} void
*/
function onMapZoomEnd(): void {
store.setZoom(map.getZoom());
}
/**
* Zooms the map in by currentZoom + 1
*
* @returns {void}
*/
function mapZoomIn(): void {
Expand All @@ -329,7 +322,6 @@
}
/**
* Zooms the map out by currentZoom - 1
*
* @returns {void}
*/
function mapZoomOut(): void {
Expand All @@ -342,7 +334,6 @@
/**
* Eases the map to given pitch
* and bearing
*
* @param {Record<string,number>} root0 - Pitch & Bearing
* @param {number} root0.pitch - Pitch
* @param {number} root0.bearing - Bearing
Expand All @@ -362,7 +353,6 @@
}
/**
* Fly the map to the specific location
*
* @param {Record<string, number>} root0 - Lat, Lng & zoom of the location
* @param {number} root0.lng – Lat
* @param {number} root0.lat - Lng
Expand All @@ -387,7 +377,6 @@
}
/**
* Updates the current map style
*
* @param {string} e - String of the new style
* @returns {void} - Returns void
*/
Expand All @@ -406,7 +395,6 @@
}
/**
* Toggles the tool enabled on the map
*
* @param {string} type - Toggle the tool type
* @returns {void} void
*/
Expand Down Expand Up @@ -437,7 +425,6 @@
/**
* Save the current map state
* in the store
*
* @returns {void} void
*/
function setMapState(): void {
Expand Down
1 change: 0 additions & 1 deletion components/map/_partials/Basemaps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
setup(_, { emit }) {
/**
* Updates the basemap
*
* @param {Record<string, string>} basemap - The basemap to update
* @param {boolean} basemap.enabled - Whether the basemap is enabled
* @param {string} basemap.style - The basemap style
Expand Down
2 changes: 0 additions & 2 deletions components/map/_partials/Upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
/**
* Update file event
*
* @param {any} e - Event
*/
function onFileChange(e: unknown) {
Expand All @@ -90,7 +89,6 @@
}
/**
* Upload the file
*
* @param {File} file - The file
*/
function uploadFile(file: File) {
Expand Down
2 changes: 0 additions & 2 deletions components/map/layers/Marker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
setup() {
/**
* Gets the coordinates for the marker
*
* @param {ExpenseFeature} m - Marker
* @returns {[number, number]} - Coordinates
*/
Expand All @@ -163,7 +162,6 @@
/**
* Gets the color for the svg
* marker based on the expense type
*
* @param {ExpenseFeature} m - Expense type
* @returns {Record<string, boolean> | string} - Color object
*/
Expand Down
1 change: 0 additions & 1 deletion composables/useIdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type { MyDB } from '~/@types/db';

/**
* Composable for using idb
*
* @returns {Promise<IDBPDatabase<MyDB>>} - The IndexDB database
*/
async function useIdb(): Promise<IDBPDatabase<MyDB>> {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/controls/VControlAttribution.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
/**
* Adds the Attribution Control
*
* @returns {void}
*/
function addControl(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/controls/VControlFullscreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
/**
* Adds the Attribution Control
*
* @returns {void}
*/
function addControl(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/controls/VControlGeolocate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
/**
* Adds the Attribution Control
*
* @returns {void}
*/
function addControl(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/controls/VControlNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
/**
* Adds the Attribution Control
*
* @returns {void}
*/
function addControl(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/controls/VControlScale.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
/**
* Adds the Attribution Control
*
* @returns {void}
*/
function addControl(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/layers/deck.gl/VLayerDeckArc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
/**
* Re–adds the layer when style changed
*
* @returns {void}
*/
function addLayer(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/layers/deck.gl/VLayerDeckGeojson.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
/**
* Re–adds the layer when style changed
*
* @returns {void}
*/
function addLayer(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/layers/mapbox/VLayerMapboxCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
/**
* Re–adds the layer when style changed
*
* @returns {void}
*/
function addLayer(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/layers/mapbox/VLayerMapboxGeojson.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
/**
* Re–adds the layer when style changed
*
* @returns {void}
*/
function addLayer(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/layers/mapbox/VLayerMapboxImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
/**
* Re–adds the layer when style changed
*
* @returns {void}
*/
function addLayer(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/layers/mapbox/VLayerMapboxRaster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
/**
* Re–adds the layer when style changed
*
* @returns {void}
*/
function addLayer(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/layers/mapbox/VLayerMapboxVector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
/**
* Re–adds the layer when style changed
*
* @returns {void}
*/
function addLayer(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/layers/mapbox/VLayerMapboxVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
/**
* Re–adds the layer when style changed
*
* @returns {void}
*/
function addLayer(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/map/VMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
/**
* Listen to map events
*
* @returns {void}
*/
function listenMapEvents(): void {
Expand Down
10 changes: 5 additions & 5 deletions lib/v-mapbox/markers/VMarker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@
/**
* Set marker coordinates
*
* @param marker
* @returns {void}
*/
function setMarkerCoordinates(marker: Marker): void {
marker.setLngLat(props.coordinates);
}
/**
* Sets the Cursor to Pointer
*
* @param marker
* @returns {void}
*/
function setCursorPointer(marker: Marker): void {
Expand All @@ -134,7 +134,7 @@
/**
* Add marker to map
*
* @param marker
* @returns {void}
*/
function addToMap(marker: Marker): void {
Expand All @@ -143,7 +143,7 @@
}
/**
* Remove marker from map
*
* @param marker
* @returns {void}
*/
function removeFromMap(marker: Marker): void {
Expand All @@ -155,7 +155,7 @@
/**
* Listen to events
*
* @param marker
* @returns {void}
*/
function listenMarkerEvents(marker: Marker): void {
Expand Down
6 changes: 0 additions & 6 deletions lib/v-mapbox/popups/VPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,13 @@
/**
* Sets the HTML content for the popup
*
* @returns {void}
*/
function setPopupContent(): void {
popup.setDOMContent(content.value as Node);
}
/**
* Set popup coordinates
*
* @returns {void}
*/
function setPopupCoordinates(): void {
Expand All @@ -87,7 +85,6 @@
/**
* Add popup to marker if marker exists
* else add it to the map.
*
* @returns {void}
*/
function addToMarker(): void {
Expand All @@ -100,7 +97,6 @@
}
/**
* Remove popup from map
*
* @returns {void}
*/
function remove(): void {
Expand All @@ -110,7 +106,6 @@
/**
* Listen to events
*
* @returns {void}
*/
function listenPopupEvents(): void {
Expand All @@ -122,7 +117,6 @@
}
/**
* Turn off listener
*
* @returns {void}
*/
function removePopupEvents(): void {
Expand Down
1 change: 0 additions & 1 deletion lib/v-mapbox/utils/injects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { inject } from 'vue';

/**
* Dependency injection 🥳
*
* @param {InjectionKey} key - The key to inject
* @param {string | undefined} fallback - The fallback value
* @returns {undefined} - The value
Expand Down

0 comments on commit 1e7a284

Please sign in to comment.