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

feat(experimental-utils): Include getCwd() in RuleContext type #3308

Merged
merged 2 commits into from May 9, 2021
Merged
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions packages/experimental-utils/src/ts-eslint/Rule.ts
Expand Up @@ -211,6 +211,12 @@ interface RuleContext<
*/
getDeclaredVariables(node: TSESTree.Node): Scope.Variable[];

/**
* returns the cwd passed to Linter.
* It is a path to a directory that should be considered as the current working directory.
*/
getCwd(): string;
fa93hws marked this conversation as resolved.
Show resolved Hide resolved

/**
* Returns the filename associated with the source.
*/
Expand Down