Skip to content

Commit

Permalink
[eslint] Add property cwd to LintResultData (DefinitelyTyped#58214)
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime authored and Martin Badin committed Feb 23, 2022
1 parent 90adb09 commit 2aca82e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/eslint/eslint-tests.ts
Expand Up @@ -698,7 +698,7 @@ const meta: Rule.RuleMetaData = {
},
};

data = { rulesMeta: { "no-extra-semi": meta } };
data = { cwd: "/foo/bar", rulesMeta: { "no-extra-semi": meta } };

const version: string = ESLint.version;

Expand Down
3 changes: 2 additions & 1 deletion types/eslint/index.d.ts
@@ -1,4 +1,4 @@
// Type definitions for eslint 8.2
// Type definitions for eslint 8.4
// Project: https://eslint.org
// Definitions by: Pierre-Marie Dartus <https://github.com/pmdartus>
// Jed Fox <https://github.com/j-f1>
Expand Down Expand Up @@ -872,6 +872,7 @@ export namespace ESLint {
}

interface LintResultData {
cwd: string;
rulesMeta: {
[ruleId: string]: Rule.RuleMetaData;
};
Expand Down

0 comments on commit 2aca82e

Please sign in to comment.