Skip to content

Commit

Permalink
apply automatically fixable issues caught by eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Dec 18, 2024
1 parent 8a646d5 commit cbb4d14
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/backend/src/node-rs-crc32-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
* @module
*/

/* eslint-disable no-bitwise */

/** @type {undefined | Uint32Array} */
let crcTable

Expand Down
2 changes: 1 addition & 1 deletion src/frontend/contexts/PhotoPromiseContext/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const PhotoPromiseProvider = ({
}, [photoPromises]);

const deletePhotoPromise = React.useCallback(
(uri: String) => {
(uri: string) => {
const newPhotoPromiseArray = photoPromises.map(async photo => {
const resolvedPhoto = await photo;
if (
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/hooks/server/maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function useMapStyleJsonUrl() {
return useQuery({
queryKey: [MAPS_QUERY_KEY, 'stylejson-url', refreshToken],
queryFn: async () => {
let result = await api.getMapStyleJsonUrl();
const result = await api.getMapStyleJsonUrl();
return result + `?refresh_token=${refreshToken}`;
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/hooks/useFormattedTimeSince.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Duration} from 'luxon';

export const useFormattedTimeSince = (start: Date | null, interval: number) => {
const [currentTime, setCurrentTime] = useState(new Date());
let startDate = start ? new Date(start) : new Date();
const startDate = start ? new Date(start) : new Date();

useEffect(() => {
setCurrentTime(new Date());
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export function matchPreset(

presets.forEach(preset => {
let score = 0;
let presetTagsCount = Object.keys(preset.tags).length;
const presetTagsCount = Object.keys(preset.tags).length;

for (const key in preset.tags) {
if (preset.tags.hasOwnProperty(key)) {
Expand Down

0 comments on commit cbb4d14

Please sign in to comment.