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

[eslint] Add property cwd to LintResultData #58214

Merged
merged 1 commit into from Jan 19, 2022
Merged
Show file tree
Hide file tree
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
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