@nx/eslint 20.1.0-canary.20241031-ce05a98 → 20.1.0-canary.20241102-c290b37

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": "20.1.0-canary.20241031-ce05a98",
3
+ "version": "20.1.0-canary.20241102-c290b37",
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,8 +35,8 @@
35
35
  "eslint": "^8.0.0 || ^9.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@nx/devkit": "20.1.0-canary.20241031-ce05a98",
39
- "@nx/js": "20.1.0-canary.20241031-ce05a98",
38
+ "@nx/devkit": "20.1.0-canary.20241102-c290b37",
39
+ "@nx/js": "20.1.0-canary.20241102-c290b37",
40
40
  "semver": "^7.5.3",
41
41
  "tslib": "^2.3.0",
42
42
  "typescript": "~5.4.2"
@@ -729,14 +729,14 @@ function addTSObjectProperty(elements, key, value) {
729
729
  */
730
730
  function generateAst(input, propertyAssignmentReplacer) {
731
731
  if (Array.isArray(input)) {
732
- return ts.factory.createArrayLiteralExpression(input.map((item) => generateAst(item, propertyAssignmentReplacer)), input.length > 1 // multiline only if more than one item
732
+ return ts.factory.createArrayLiteralExpression(input.map((item) => generateAst(item, propertyAssignmentReplacer)), true // Always treat as multiline, using item.length does not work in all cases
733
733
  );
734
734
  }
735
735
  if (input === null) {
736
736
  return ts.factory.createNull();
737
737
  }
738
738
  if (typeof input === 'object') {
739
- return ts.factory.createObjectLiteralExpression(generatePropertyAssignmentsFromObjectEntries(input, propertyAssignmentReplacer), Object.keys(input).length > 1 // multiline only if more than one property
739
+ return ts.factory.createObjectLiteralExpression(generatePropertyAssignmentsFromObjectEntries(input, propertyAssignmentReplacer), true // Always treat as multiline, using Object.keys(input).length > 1 does not work in all cases
740
740
  );
741
741
  }
742
742
  if (typeof input === 'string') {