diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-12 12:41:00 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-12 12:41:00 +0530 |
commit | f180d0580457e1e9bd502293df327dfe138dd422 (patch) | |
tree | 11b9eecb7a74acf7cfe36ccbc3366905718d8a1d /packages/idb-bridge | |
parent | 0050bf005a40cab3b4fdc43f2960025e8d52e176 (diff) |
remove excessive namespacing, format
Diffstat (limited to 'packages/idb-bridge')
-rw-r--r-- | packages/idb-bridge/.prettierrc | 6 | ||||
-rw-r--r-- | packages/idb-bridge/package.json | 3 | ||||
-rw-r--r-- | packages/idb-bridge/src/BridgeIDBTransaction.ts | 6 | ||||
-rw-r--r-- | packages/idb-bridge/src/idbtypes.ts | 2 | ||||
-rw-r--r-- | packages/idb-bridge/src/index.ts | 9 | ||||
-rw-r--r-- | packages/idb-bridge/src/util/FakeEvent.ts | 6 | ||||
-rw-r--r-- | packages/idb-bridge/src/util/FakeEventTarget.ts | 7 |
7 files changed, 23 insertions, 16 deletions
diff --git a/packages/idb-bridge/.prettierrc b/packages/idb-bridge/.prettierrc deleted file mode 100644 index 50063da90..000000000 --- a/packages/idb-bridge/.prettierrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "trailingComma": "all", - "tabWidth": 2, - "semi": true, - "singleQuote": false -}
\ No newline at end of file diff --git a/packages/idb-bridge/package.json b/packages/idb-bridge/package.json index cf9ce409c..379599421 100644 --- a/packages/idb-bridge/package.json +++ b/packages/idb-bridge/package.json @@ -12,13 +12,14 @@ "test": "tsc && ava", "compile": "tsc && rollup -c && api-extractor run", "clean": "rimraf dist lib tsconfig.tsbuildinfo", - "pretty": "prettier --config ../../.prettierrc --write src" + "pretty": "prettier --write src" }, "devDependencies": { "@microsoft/api-extractor": "^7.9.3", "@rollup/plugin-typescript": "^5.0.2", "ava": "^3.10.1", "esm": "^3.2.25", + "prettier": "^2.0.5", "rimraf": "^3.0.2", "rollup": "^2.23.0", "typescript": "^3.7.0" diff --git a/packages/idb-bridge/src/BridgeIDBTransaction.ts b/packages/idb-bridge/src/BridgeIDBTransaction.ts index d49ae515f..b064d069e 100644 --- a/packages/idb-bridge/src/BridgeIDBTransaction.ts +++ b/packages/idb-bridge/src/BridgeIDBTransaction.ts @@ -10,11 +10,7 @@ import { import fakeDOMStringList from "./util/fakeDOMStringList"; import FakeEvent from "./util/FakeEvent"; import FakeEventTarget from "./util/FakeEventTarget"; -import { - FakeDOMStringList, - RequestObj, - TransactionMode, -} from "./util/types"; +import { FakeDOMStringList, RequestObj, TransactionMode } from "./util/types"; import queueTask from "./util/queueTask"; import openPromise from "./util/openPromise"; import { DatabaseTransaction, Backend } from "./backend-interface"; diff --git a/packages/idb-bridge/src/idbtypes.ts b/packages/idb-bridge/src/idbtypes.ts index 4ab2b6f3b..7bd0eaaaa 100644 --- a/packages/idb-bridge/src/idbtypes.ts +++ b/packages/idb-bridge/src/idbtypes.ts @@ -866,7 +866,7 @@ export interface IDBTransaction extends EventTarget { * This IndexedDB API interface indicates that the version of the database has * changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler * function. - * + * * @public */ export interface IDBVersionChangeEvent extends Event { diff --git a/packages/idb-bridge/src/index.ts b/packages/idb-bridge/src/index.ts index a07803763..4c29be968 100644 --- a/packages/idb-bridge/src/index.ts +++ b/packages/idb-bridge/src/index.ts @@ -36,7 +36,14 @@ import { IndexProperties, } from "./backend-interface"; import FakeEventTarget, { Listener } from "./util/FakeEventTarget"; -import { DatabaseDump, ObjectStoreDump, IndexDump, IndexRecord, ObjectStoreRecord, MemoryBackendDump } from "./MemoryBackend"; +import { + DatabaseDump, + ObjectStoreDump, + IndexDump, + IndexRecord, + ObjectStoreRecord, + MemoryBackendDump, +} from "./MemoryBackend"; import { Event } from "./idbtypes"; export { diff --git a/packages/idb-bridge/src/util/FakeEvent.ts b/packages/idb-bridge/src/util/FakeEvent.ts index 207607886..1c558d8a0 100644 --- a/packages/idb-bridge/src/util/FakeEvent.ts +++ b/packages/idb-bridge/src/util/FakeEvent.ts @@ -67,7 +67,11 @@ export class FakeEvent implements Event { composedPath(): EventTarget[] { throw new Error("Method not implemented."); } - initEvent(type: string, bubbles?: boolean | undefined, cancelable?: boolean | undefined): void { + initEvent( + type: string, + bubbles?: boolean | undefined, + cancelable?: boolean | undefined, + ): void { throw new Error("Method not implemented."); } diff --git a/packages/idb-bridge/src/util/FakeEventTarget.ts b/packages/idb-bridge/src/util/FakeEventTarget.ts index da5a5466a..77df768f2 100644 --- a/packages/idb-bridge/src/util/FakeEventTarget.ts +++ b/packages/idb-bridge/src/util/FakeEventTarget.ts @@ -17,7 +17,12 @@ import { InvalidStateError } from "./errors"; import FakeEvent from "./FakeEvent"; import { EventType } from "./types"; -import { EventTarget, Event, EventListenerOrEventListenerObject, EventListener } from "../idbtypes"; +import { + EventTarget, + Event, + EventListenerOrEventListenerObject, + EventListener, +} from "../idbtypes"; type EventTypeProp = | "onabort" |