@nx/eslint 22.3.1 → 22.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/eslint",
3
- "version": "22.3.1",
3
+ "version": "22.3.3",
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": "22.3.1",
39
- "@nx/js": "22.3.1",
38
+ "@nx/devkit": "22.3.3",
39
+ "@nx/js": "22.3.3",
40
40
  "semver": "^7.6.3",
41
41
  "tslib": "^2.3.0",
42
42
  "typescript": "~5.9.2"
43
43
  },
44
44
  "devDependencies": {
45
- "nx": "22.3.1"
45
+ "nx": "22.3.3"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "@zkochan/js-yaml": {
@@ -139,8 +139,21 @@ function createEsLintConfiguration(tree, options, projectConfig, setParserOption
139
139
  }
140
140
  }
141
141
  const overrides = (0, flat_config_1.useFlatConfig)(tree)
142
- ? // For flat configs, we don't need to generate different overrides for each file. Users should add their own overrides as needed.
143
- []
142
+ ? // For flat configs, keep generated overrides minimal; only add parserOptions when explicitly requested.
143
+ [
144
+ ...(setParserOptionsProject
145
+ ? [
146
+ {
147
+ files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
148
+ languageOptions: {
149
+ parserOptions: {
150
+ project: [`${projectConfig.root}/tsconfig.*?.json`],
151
+ },
152
+ },
153
+ },
154
+ ]
155
+ : []),
156
+ ]
144
157
  : [
145
158
  {
146
159
  files: ['*.ts', '*.tsx', '*.js', '*.jsx'],