Skip to content

Commit f04658d

Browse files
ruromeroclaude
andcommitted
fix: resolve eslint warnings in workspace.js and batch test
Use named import for js-yaml load function and fix import ordering in stack_analysis_batch.test.js. TC-3862 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2e21f9b commit f04658d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/workspace.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'node:fs'
22
import path from 'node:path'
33

44
import fg from 'fast-glob'
5-
import yaml from 'js-yaml'
5+
import { load as yamlLoad } from 'js-yaml'
66
import micromatch from 'micromatch'
77

88
import { getCustom, getCustomPath, invokeCommand } from './tools.js'
@@ -166,7 +166,7 @@ async function discoverFromPnpmWorkspace(root, pnpmWorkspacePath, globOpts, igno
166166
function parsePnpmPackages(content) {
167167
let doc
168168
try {
169-
doc = yaml.load(content)
169+
doc = yamlLoad(content)
170170
} catch {
171171
return []
172172
}

test/stack_analysis_batch.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import fs from 'node:fs'
22
import path from 'node:path'
33

44
import { expect } from 'chai'
5+
import esmock from 'esmock'
56
import { http, HttpResponse } from 'msw'
67
import { setupServer } from 'msw/node'
7-
import esmock from 'esmock'
88

99
const BACKEND_URL = 'http://localhost:9999'
1010
const BACKEND_OPTS = { TRUSTIFY_DA_BACKEND_URL: BACKEND_URL }

0 commit comments

Comments
 (0)