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 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
8 changes: 8 additions & 0 deletions packages/experimental-utils/src/ts-eslint/Rule.ts
Expand Up @@ -211,6 +211,14 @@ interface RuleContext<
*/
getDeclaredVariables(node: TSESTree.Node): Scope.Variable[];

/**
* Returns the current working directory passed to Linter.
* It is a path to a directory that should be considered as the current working directory.
* This was added in v6.6.0
* @since 6.6.0
*/
getCwd?(): string;

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