diff --git a/common/changes/@rushstack/heft-lint-plugin/eslint-bulk-overhaul_2024-12-19-00-26.json b/common/changes/@rushstack/heft-lint-plugin/eslint-bulk-overhaul_2024-12-19-00-26.json new file mode 100644 index 00000000000..fe161e22498 --- /dev/null +++ b/common/changes/@rushstack/heft-lint-plugin/eslint-bulk-overhaul_2024-12-19-00-26.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@rushstack/heft-lint-plugin", + "comment": "Speed up heft-lint-plugin by telling eslint-bulk-suppressions exactly where to find the config file.", + "type": "patch" + } + ], + "packageName": "@rushstack/heft-lint-plugin" +} \ No newline at end of file diff --git a/heft-plugins/heft-lint-plugin/src/Eslint.ts b/heft-plugins/heft-lint-plugin/src/Eslint.ts index b5027f2b171..1591a37d8d5 100644 --- a/heft-plugins/heft-lint-plugin/src/Eslint.ts +++ b/heft-plugins/heft-lint-plugin/src/Eslint.ts @@ -2,6 +2,7 @@ // See LICENSE in the project root for license information. import * as crypto from 'crypto'; +import * as path from 'path'; import * as semver from 'semver'; import type * as TTypescript from 'typescript'; import type * as TEslint from 'eslint'; @@ -100,6 +101,7 @@ export class Eslint extends LinterBase { }; } + process.env.ESLINT_BULK_ESLINTRC_FOLDER_PATH = path.dirname(linterConfigFilePath); this._linter = new eslintPackage.ESLint({ cwd: buildFolderPath, overrideConfigFile: linterConfigFilePath,