Skip to content

Commit

Permalink
feat: includet getCwd() in RuleContext
Browse files Browse the repository at this point in the history
  • Loading branch information
fa93hws committed Apr 23, 2021
1 parent 1c1b572 commit 27cd4b7
Showing 1 changed file with 6 additions and 0 deletions.
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;

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

0 comments on commit 27cd4b7

Please sign in to comment.