Skip to content

Commit 69a09a1

Browse files
committed
[heft-lint] Set eslint-bulk config path environment variable
1 parent 9da57d4 commit 69a09a1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/heft-lint-plugin",
5+
"comment": "Speed up heft-lint-plugin by telling eslint-bulk-suppressions exactly where to find the config file.",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@rushstack/heft-lint-plugin"
10+
}

heft-plugins/heft-lint-plugin/src/Eslint.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// See LICENSE in the project root for license information.
33

44
import * as crypto from 'crypto';
5+
import * as path from 'path';
56
import * as semver from 'semver';
67
import type * as TTypescript from 'typescript';
78
import type * as TEslint from 'eslint';
@@ -100,6 +101,7 @@ export class Eslint extends LinterBase<TEslint.ESLint.LintResult> {
100101
};
101102
}
102103

104+
process.env.ESLINT_BULK_ESLINTRC_FOLDER_PATH = path.dirname(linterConfigFilePath);
103105
this._linter = new eslintPackage.ESLint({
104106
cwd: buildFolderPath,
105107
overrideConfigFile: linterConfigFilePath,

0 commit comments

Comments
 (0)