@nx/eslint 18.0.0-canary.20240130-bb3cf3a → 18.0.0-canary.20240201-8762c38

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": "18.0.0-canary.20240130-bb3cf3a",
3
+ "version": "18.0.0-canary.20240201-8762c38",
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": {
@@ -30,20 +30,17 @@
30
30
  "generators": "./generators.json",
31
31
  "executors": "./executors.json",
32
32
  "peerDependencies": {
33
- "eslint": "^8.0.0",
34
33
  "js-yaml": "4.1.0"
35
34
  },
36
35
  "dependencies": {
37
- "@nx/devkit": "18.0.0-canary.20240130-bb3cf3a",
38
- "@nx/js": "18.0.0-canary.20240130-bb3cf3a",
36
+ "@nx/devkit": "18.0.0-canary.20240201-8762c38",
37
+ "@nx/js": "18.0.0-canary.20240201-8762c38",
38
+ "eslint": "^8.0.0",
39
39
  "tslib": "^2.3.0",
40
40
  "typescript": "~5.3.2",
41
- "@nx/linter": "18.0.0-canary.20240130-bb3cf3a"
41
+ "@nx/linter": "18.0.0-canary.20240201-8762c38"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
- "eslint": {
45
- "optional": true
46
- },
47
44
  "js-yaml": {
48
45
  "optional": true
49
46
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 2,
3
3
  "outputCapture": "direct-nodejs",
4
- "$schema": "http://json-schema.org/schema",
4
+ "$schema": "https://json-schema.org/schema",
5
5
  "title": "ESLint Lint Target",
6
6
  "description": "ESLint Lint Target.",
7
7
  "cli": "nx",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "ConvertToFlatConfig",
4
4
  "cli": "nx",
5
5
  "description": "Convert an Nx workspace's ESLint configs to use Flat Config.",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "cli": "nx",
4
4
  "$id": "NxESLintInit",
5
5
  "title": "Initialize ESLint Plugin",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxWorkspaceRule",
4
4
  "cli": "nx",
5
5
  "title": "Create a new Workspace Lint Rule",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxWorkspaceRulesProject",
4
4
  "cli": "nx",
5
5
  "title": "Create the Workspace Lint Rules Project",
@@ -73,7 +73,7 @@ async function update(tree) {
73
73
  delete projConfig.targets[targetName].options.eslintConfig;
74
74
  }
75
75
  // remove options if empty
76
- if (Object.keys(projConfig.targets[targetName].options).length === 0) {
76
+ if (Object.keys(projConfig.targets[targetName]?.options ?? {}).length === 0) {
77
77
  delete projConfig.targets[targetName].options;
78
78
  }
79
79
  // track output