Skip to content

Commit

Permalink
feat(experimental-utils): Include getCwd() in RuleContext type (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fa93hws committed May 9, 2021
1 parent 87521a0 commit 2b75c11
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit 2b75c11

Please sign in to comment.