Skip to content

Commit 6e79ac7

Browse files
authored
docs: loadESLint does not support option cwd (#18641)
1 parent 8555ad9 commit 6e79ac7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

docs/src/integrate/nodejs-api.md

-3
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,6 @@ const { loadESLint } = require("eslint");
481481
// loads the default ESLint that the CLI would use based on process.cwd()
482482
const DefaultESLint = await loadESLint();
483483

484-
// loads the default ESLint that the CLI would use based on the provided cwd
485-
const CwdDefaultESLint = await loadESLint({ cwd: "/foo/bar" });
486-
487484
// loads the flat config version specifically
488485
const FlatESLint = await loadESLint({ useFlatConfig: true });
489486

0 commit comments

Comments
 (0)