@nx/eslint 19.6.0-canary.20240731-341f295 → 19.6.0-canary.20240803-bd7a2c9

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": "19.6.0-canary.20240731-341f295",
3
+ "version": "19.6.0-canary.20240803-bd7a2c9",
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,12 +35,12 @@
35
35
  "eslint": "^8.0.0 || ^9.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@nx/devkit": "19.6.0-canary.20240731-341f295",
39
- "@nx/js": "19.6.0-canary.20240731-341f295",
38
+ "@nx/devkit": "19.6.0-canary.20240803-bd7a2c9",
39
+ "@nx/js": "19.6.0-canary.20240803-bd7a2c9",
40
40
  "semver": "^7.5.3",
41
41
  "tslib": "^2.3.0",
42
42
  "typescript": "~5.4.2",
43
- "@nx/linter": "19.6.0-canary.20240731-341f295"
43
+ "@nx/linter": "19.6.0-canary.20240803-bd7a2c9"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "@zkochan/js-yaml": {
@@ -303,10 +303,10 @@ function buildEslintTargets(eslintConfigs, eslintVersion, projectRoot, workspace
303
303
  }
304
304
  function normalizeOptions(options) {
305
305
  const normalizedOptions = {
306
- targetName: options.targetName ?? 'lint',
306
+ targetName: options?.targetName ?? 'lint',
307
307
  };
308
308
  // Normalize user input for extensions (strip leading . characters)
309
- if (Array.isArray(options.extensions)) {
309
+ if (Array.isArray(options?.extensions)) {
310
310
  normalizedOptions.extensions = options.extensions.map((f) => f.replace(/^\.+/, ''));
311
311
  }
312
312
  else {