Skip to content

Commit 1837181

Browse files
authored
[chore/devx] Speed up local lint command (#7605)
1 parent 027add3 commit 1837181

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = tseslint.config([
3838
},
3939
],
4040
// Run import/no-cycle only in CI because it is slow.
41-
"import/no-cycle": process.env.LINT_SCRIPT ? "error" : "off",
41+
"import/no-cycle": process.env.CI ? "error" : "off",
4242
},
4343
},
4444
{

packages/node-build-scripts/es-lint.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ import { ESLint } from "eslint";
1313
import fs from "fs-extra";
1414
import { globSync } from "glob";
1515
import { resolve } from "node:path";
16-
import { argv, cwd, env, exit } from "node:process";
16+
import { argv, cwd, exit } from "node:process";
1717

1818
import { junitReportPath } from "./src/utils.mjs";
1919

2020
await main();
2121

2222
async function main() {
23-
env.LINT_SCRIPT = "true";
24-
2523
const FILES_GLOB = "{src,test}/**/*.{ts,tsx}";
2624
const absoluteFileGlob = resolve(cwd(), FILES_GLOB);
2725

0 commit comments

Comments
 (0)