style: fix lint errors, ignore js and d.ts files

This commit is contained in:
Kamil Myśliwiec
2023-02-01 13:40:29 +01:00
parent 38c365215a
commit 511e7162a6
2 changed files with 5 additions and 3 deletions

View File

@@ -1 +1,3 @@
**/node_modules/**
**/node_modules/**
*.d.ts
*.js

View File

@@ -7,13 +7,13 @@ export enum UuidFactoryMode {
}
export class UuidFactory {
private static _mode: UuidFactoryMode = UuidFactoryMode.Random;
private static _mode = UuidFactoryMode.Random;
static set mode(value: UuidFactoryMode) {
this._mode = value;
}
static get(key: string = '', namespace?: string) {
static get(key = '', namespace?: string) {
return this._mode === UuidFactoryMode.Deterministic
? DeterministicUuidRegistry.get(key, namespace)
: randomStringGenerator();