Skip to content

Commit

Permalink
docs: loadESLint does not support option cwd (#18641)
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime authored Jul 1, 2024
1 parent 8555ad9 commit 6e79ac7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/src/integrate/nodejs-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,6 @@ const { loadESLint } = require("eslint");
// loads the default ESLint that the CLI would use based on process.cwd()
const DefaultESLint = await loadESLint();

// loads the default ESLint that the CLI would use based on the provided cwd
const CwdDefaultESLint = await loadESLint({ cwd: "/foo/bar" });

// loads the flat config version specifically
const FlatESLint = await loadESLint({ useFlatConfig: true });

Expand Down

0 comments on commit 6e79ac7

Please sign in to comment.