@nx/eslint 21.4.0-canary.20250719-34c5b61 → 21.4.0-canary.20250722-5163bcd

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/eslint",
3
- "version": "21.4.0-canary.20250719-34c5b61",
3
+ "version": "21.4.0-canary.20250722-5163bcd",
4
4
  "private": false,
5
5
  "description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
6
6
  "repository": {
@@ -35,14 +35,14 @@
35
35
  "eslint": "^8.0.0 || ^9.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@nx/devkit": "21.4.0-canary.20250719-34c5b61",
39
- "@nx/js": "21.4.0-canary.20250719-34c5b61",
38
+ "@nx/devkit": "21.4.0-canary.20250722-5163bcd",
39
+ "@nx/js": "21.4.0-canary.20250722-5163bcd",
40
40
  "semver": "^7.5.3",
41
41
  "tslib": "^2.3.0",
42
42
  "typescript": "~5.8.2"
43
43
  },
44
44
  "devDependencies": {
45
- "nx": "21.4.0-canary.20250719-34c5b61"
45
+ "nx": "21.4.0-canary.20250722-5163bcd"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "@zkochan/js-yaml": {
@@ -127,13 +127,13 @@ Please see https://nx.dev/recipes/tips-n-tricks/eslint for full guidance on how
127
127
  }
128
128
  throw new Error('Invalid lint configuration. Nothing to lint. Please check your lint target pattern(s).');
129
129
  }
130
+ // output fixes to disk, if applicable based on the options
131
+ await ESLint.outputFixes(lintResults);
130
132
  // if quiet, only show errors
131
133
  if (normalizedOptions.quiet) {
132
134
  console.debug('Quiet mode enabled - filtering out warnings\n');
133
135
  lintResults = ESLint.getErrorResults(lintResults);
134
136
  }
135
- // output fixes to disk, if applicable based on the options
136
- await ESLint.outputFixes(lintResults);
137
137
  const formatter = await eslint.loadFormatter(normalizedOptions.format);
138
138
  const formattedResults = await formatter.format(lintResults);
139
139
  if (normalizedOptions.outputFile) {
@@ -1 +1 @@
1
- {"version":3,"file":"eslint-utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/eslint/src/executors/lint/utility/eslint-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,wBAAsB,2BAA2B,CAC/C,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,OAAO,EAAE,MAAM,EACf,aAAa,UAAQ;;;GA8EtB"}
1
+ {"version":3,"file":"eslint-utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/eslint/src/executors/lint/utility/eslint-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,wBAAsB,2BAA2B,CAC/C,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,OAAO,EAAE,MAAM,EACf,aAAa,UAAQ;;;GAgFtB"}
@@ -16,7 +16,8 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
16
16
  // ruleFilter exist only in eslint 9+, remove this type when eslint 8 support dropped
17
17
  const eslintOptions = {
18
18
  overrideConfigFile: eslintConfigPath,
19
- fix: !!options.fix,
19
+ fix: !!options.fix &&
20
+ (options.quiet ? (message) => message.severity === 2 : true),
20
21
  cache: !!options.cache,
21
22
  cacheLocation: options.cacheLocation || undefined,
22
23
  cacheStrategy: options.cacheStrategy || undefined,