@nx/eslint 17.0.1 → 17.0.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": "17.0.
|
|
3
|
+
"version": "17.0.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": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
|
-
"@nx/devkit": "17.0.
|
|
38
|
-
"@nx/js": "17.0.
|
|
37
|
+
"@nx/devkit": "17.0.3",
|
|
38
|
+
"@nx/js": "17.0.3",
|
|
39
39
|
"typescript": "~5.1.3",
|
|
40
|
-
"@nx/linter": "17.0.
|
|
40
|
+
"@nx/linter": "17.0.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"eslint": {
|
|
@@ -223,19 +223,23 @@ function addBlockToFlatConfigExport(content, config, options = {
|
|
|
223
223
|
});
|
|
224
224
|
const insert = printer.printNode(ts.EmitHint.Expression, config, source);
|
|
225
225
|
if (options.insertAtTheEnd) {
|
|
226
|
+
const index = exportsArray.length > 0
|
|
227
|
+
? exportsArray.at(exportsArray.length - 1).end
|
|
228
|
+
: exportsArray.pos;
|
|
226
229
|
return (0, devkit_1.applyChangesToString)(content, [
|
|
227
230
|
{
|
|
228
231
|
type: devkit_1.ChangeType.Insert,
|
|
229
|
-
index
|
|
232
|
+
index,
|
|
230
233
|
text: `,\n${insert}`,
|
|
231
234
|
},
|
|
232
235
|
]);
|
|
233
236
|
}
|
|
234
237
|
else {
|
|
238
|
+
const index = exportsArray.length > 0 ? exportsArray.at(0).pos : exportsArray.pos;
|
|
235
239
|
return (0, devkit_1.applyChangesToString)(content, [
|
|
236
240
|
{
|
|
237
241
|
type: devkit_1.ChangeType.Insert,
|
|
238
|
-
index
|
|
242
|
+
index,
|
|
239
243
|
text: `\n${insert},`,
|
|
240
244
|
},
|
|
241
245
|
]);
|