Skip to content

Commit

Permalink
Merge pull request #431 from gioboa/feat/no-unused-vars
Browse files Browse the repository at this point in the history
feat: apply no-unused-vars rule
  • Loading branch information
aparzi authored Jan 2, 2025
2 parents d681f52 + cd20cb3 commit 9bf91eb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ module.exports = tseslint.config(
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-explicit-any" : "off",
"@typescript-eslint/no-unused-vars": "off"
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-indexed-db/src/lib/ngx-indexed-db.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class NgxIndexedDBService {
const objectStore = transaction.objectStore(storeName);

const results = values.map((value) => {
return new Promise<number>((resolve1, reject1) => {
return new Promise<number>((resolve1) => {
const key = value.key;
delete value.key;

Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-indexed-db/src/lib/ngx-indexed-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export function openDatabase(
}
const request = indexedDB.open(dbName, version);
let db: IDBDatabase;
request.onsuccess = (event: Event) => {
request.onsuccess = () => {
db = request.result;
openedDatabases.push(db);
resolve(db);
};
request.onerror = (event: Event) => {
request.onerror = () => {
reject(`IndexedDB error: ${request.error}`);
};
if (typeof upgradeCallback === 'function') {
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-indexed-db/src/lib/ngxindexeddb.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule, ModuleWithProviders, InjectionToken } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { DBConfig } from './ngx-indexed-db.meta';
import { _provideIndexedDb } from './provide-indexed-db';

Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-indexed-db/src/lib/provide-indexed-db.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { makeEnvironmentProviders, Provider } from '@angular/core';
import { DBConfig, CONFIG_TOKEN, INDEXED_DB, SERVER_INDEXED_DB } from './ngx-indexed-db.meta';
import { DBConfig, CONFIG_TOKEN, INDEXED_DB } from './ngx-indexed-db.meta';
import { NgxIndexedDBService } from './ngx-indexed-db.service';
import { indexedDbFactory } from '../ssr';

Expand Down
1 change: 1 addition & 0 deletions projects/ngx-indexed-db/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function optionsGenerator(
type: any,
storeName: any,
reject: (reason?: any) => void,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
resolve?: (e: any) => void
): Options {
return {
Expand Down
2 changes: 1 addition & 1 deletion projects/ssr-playground/src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { provideRouter } from '@angular/router';

import { routes } from './app.routes';
import { provideClientHydration } from '@angular/platform-browser';
import { provideIndexedDb, DBConfig, SERVER_INDEXED_DB } from 'ngx-indexed-db';
import { provideIndexedDb, DBConfig } from 'ngx-indexed-db';

const dbConfig: DBConfig = {
name: 'MyDb',
Expand Down

0 comments on commit 9bf91eb

Please sign in to comment.