Skip to content

Commit a31d32e

Browse files
authored
Merge pull request #28 from MatrixAI/feature-integrate-js-lint
Integrate js-lint and removing old linting elements
2 parents bd0b924 + 93b7dc3 commit a31d32e

File tree

6 files changed

+4883
-11303
lines changed

6 files changed

+4883
-11303
lines changed

.eslintrc

Lines changed: 0 additions & 178 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ console.log(randIds.map((b) => utils.toUUID(b)));
1717
// Deterministic ids, equivalent to UUIDv5
1818

1919
const deteGen = new IdDeterministic({
20-
namespace: 'foo'
20+
namespace: 'foo',
2121
});
2222

2323
const deteId1 = deteGen.get();
@@ -40,12 +40,10 @@ console.log(deteId2.toString() === deteId3.toString());
4040

4141
// Strictly monotonic sortable ids, equivalent to UUIDv7
4242

43-
let lastId = new Uint8Array(
44-
[
45-
0x06, 0x16, 0x3e, 0xf5, 0x6d, 0x8d, 0x70, 0x00,
46-
0x87, 0xc4, 0x65, 0xd5, 0x21, 0x9b, 0x03, 0xd4,
47-
]
48-
);
43+
let lastId = new Uint8Array([
44+
0x06, 0x16, 0x3e, 0xf5, 0x6d, 0x8d, 0x70, 0x00, 0x87, 0xc4, 0x65, 0xd5, 0x21,
45+
0x9b, 0x03, 0xd4,
46+
]);
4947

5048
const sortGen = new IdSortable({ lastId });
5149

0 commit comments

Comments
 (0)