@nx/eslint 20.1.0-canary.20241031-ce05a98 → 20.1.0-canary.20241101-d4f4dac
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/eslint",
|
3
|
-
"version": "20.1.0-canary.
|
3
|
+
"version": "20.1.0-canary.20241101-d4f4dac",
|
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.
|
39
|
-
"@nx/js": "20.1.0-canary.
|
38
|
+
"@nx/devkit": "20.1.0-canary.20241101-d4f4dac",
|
39
|
+
"@nx/js": "20.1.0-canary.20241101-d4f4dac",
|
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)),
|
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
|
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') {
|