diff --git a/common/changes/eslint-plugin-tsdoc/eslint-10-compat_2026-02-25-06-44.json b/common/changes/eslint-plugin-tsdoc/eslint-10-compat_2026-02-25-06-44.json new file mode 100644 index 00000000..56322906 --- /dev/null +++ b/common/changes/eslint-plugin-tsdoc/eslint-10-compat_2026-02-25-06-44.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "eslint-plugin-tsdoc", + "comment": "Replace deprecated `context.getSourceCode()` and `context.getCwd()` with `context.sourceCode` and `context.cwd` for ESLint 10 compatibility, with fallback for older versions.", + "type": "patch" + } + ], + "packageName": "eslint-plugin-tsdoc" +} diff --git a/eslint-plugin/src/index.ts b/eslint-plugin/src/index.ts index 3bf2e77b..ab0c35ae 100644 --- a/eslint-plugin/src/index.ts +++ b/eslint-plugin/src/index.ts @@ -35,7 +35,7 @@ function getRootDirectoryFromContext(context: TSESLint.RuleContext