Skip to content

Commit

Permalink
Upgrade some linting packages
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed May 1, 2024
1 parent c0537ea commit 11e2973
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/js/db.ts → src/js/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export class Database<T extends DatabaseEntry> {
}

remove(id: DatabaseEntryId) {
const newData = this.getAll().filter((item) => item.id !== id);
const data = this.getAll().filter((item) => item.id !== id);

localStorage.setItem(this.key, JSON.stringify(newData));
localStorage.setItem(this.key, JSON.stringify(data));
}

get(id: DatabaseEntryId): T | undefined {
Expand Down
2 changes: 1 addition & 1 deletion src/js/error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function handleError(event: ErrorEvent | PromiseRejectionEvent) {
} else if (event instanceof PromiseRejectionEvent) {
alert(event.reason);
} else {
alert(JSON.stringify(event, null, 4));
alert(JSON.stringify(event, undefined, 4));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/js/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Database } from './db';
import { Database } from './database';
import { ready, html } from './utils';

interface Location {
Expand Down

0 comments on commit 11e2973

Please sign in to comment.