Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: explicit call out for when process.cwd is set #1959

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ Lint the provided source `text`. An `opts` object may be provided:
filename: '', // path of file containing the text being linted

// common to lintText and lintFiles
cwd: '', // current working directory (default: process.cwd())
cwd: '', // current working directory (default: process.cwd() at import time)
fix: false, // automatically fix problems
extensions: [], // file extensions to lint (has sane defaults)
globals: [], // custom global variables to declare
Expand Down Expand Up @@ -800,7 +800,7 @@ Lint the provided `files` globs. An `opts` object may be provided:
ignore: [], // file globs to ignore (has sane defaults)

// common to lintText and lintFiles
cwd: '', // current working directory (default: process.cwd())
cwd: '', // current working directory (default: process.cwd() at import time)
fix: false, // automatically fix problems
extensions: [], // file extensions to lint (has sane defaults)
globals: [], // custom global variables to declare
Expand Down