Skip to content

Commit 9d9793c

Browse files
committed
Set explicit eslint workingDirectories instead of potentially flaky mode:auto
1 parent c891ca3 commit 9d9793c

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"files.eol": "\n",
4444

4545
"typescript.preferences.importModuleSpecifier": "relative",
46-
"eslint.workingDirectories": [{ "mode": "auto" }],
46+
"eslint.workingDirectories": ["./src", "./samples"],
4747
"debug.javascript.terminalOptions": {
4848
"nodeVersionHint": 20
4949
},

src/packages/emmett-esdb/src/eventStore/eventstoreDBEventStore.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
STREAM_DOES_NOT_EXIST,
55
STREAM_EXISTS,
66
assertExpectedVersionMatchesCurrent,
7-
streamTransformations,
87
type AggregateStreamOptions,
98
type AggregateStreamResultWithGlobalPosition,
109
type AppendToStreamOptions,
@@ -30,8 +29,6 @@ import {
3029
type JSONRecordedEvent,
3130
} from '@eventstore/db-client';
3231

33-
const { map } = streamTransformations;
34-
3532
const toEventStoreDBReadOptions = (
3633
options: ReadStreamOptions | undefined,
3734
): ESDBReadStreamOptions | undefined => {
@@ -247,6 +244,8 @@ const toExpectedVersion = (
247244
return expected;
248245
};
249246

247+
// const { map } = streamTransformations;
248+
//
250249
// // eslint-disable-next-line @typescript-eslint/no-unused-vars
251250
// const convertToWebReadableStream = (
252251
// allStreamSubscription: AllStreamSubscription,

src/packages/emmett-postgresql/src/benchmarks/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ async function runBenchmark() {
123123
},
124124
})
125125
.on('cycle', function (event: Benchmark.Event) {
126+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
126127
console.log(String(event.target));
127128
})
128129
.on('complete', function (this: Benchmark.Suite) {

src/packages/emmett/src/commandHandling/handleCommand.ts

-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ export const CommandHandler =
116116
read: {
117117
// expected stream version is passed to fail fast
118118
// if stream is in the wrong state
119-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
120119
expectedStreamVersion:
121120
handleOptions?.expectedStreamVersion ?? NO_CONCURRENCY_CHECK,
122121
},

0 commit comments

Comments
 (0)