@nx/eslint-plugin 24.0.2 → 24.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -316,6 +316,12 @@ const OXLINT_REGEX = /node_modules.*[\/\\]oxlint(?:\.js)?$/;
316
316
  function isOxlintTerminalRun(argv) {
317
317
  return !!argv[1].match(OXLINT_REGEX) && !argv.includes('--lsp');
318
318
  }
319
+ // `bun lint` hosts ESLint plugins itself, so argv[0] is the bun executable and
320
+ // argv[1] is the `lint` subcommand rather than a script path.
321
+ const BUN_REGEX = /(?:^|[\/\\])bun(?:\.exe)?$/;
322
+ function isBunLintRun(argv) {
323
+ return !!argv[0].match(BUN_REGEX) && argv[1] === 'lint';
324
+ }
319
325
  function isTerminalRun() {
320
326
  return (process.argv.length > 1 &&
321
327
  (!!process.argv[1].match(NRWL_CLI_REGEX) ||
@@ -323,6 +329,7 @@ function isTerminalRun() {
323
329
  !!process.argv[1].match(ESLINT_REGEX) ||
324
330
  !!process.argv[1].match(ESLINT_WORKER_REGEX) ||
325
331
  isOxlintTerminalRun(process.argv) ||
332
+ isBunLintRun(process.argv) ||
326
333
  !!process.argv[1].endsWith('/bin/jest.js')));
327
334
  }
328
335
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/eslint-plugin",
3
- "version": "24.0.2",
3
+ "version": "24.0.3",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -100,8 +100,8 @@
100
100
  }
101
101
  },
102
102
  "dependencies": {
103
- "@nx/devkit": "24.0.2",
104
- "@nx/js": "24.0.2",
103
+ "@nx/devkit": "24.0.3",
104
+ "@nx/js": "24.0.3",
105
105
  "@phenomnomnominal/tsquery": "~6.2.0",
106
106
  "@typescript-eslint/type-utils": "^8.0.0",
107
107
  "@typescript-eslint/utils": "^8.0.0",
@@ -113,7 +113,7 @@
113
113
  "tslib": "^2.3.0"
114
114
  },
115
115
  "devDependencies": {
116
- "nx": "24.0.2"
116
+ "nx": "24.0.3"
117
117
  },
118
118
  "publishConfig": {
119
119
  "access": "public"