@angular-eslint/eslint-plugin 19.5.1-alpha.5 → 19.5.1-alpha.7

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.
@@ -138,7 +138,9 @@ function reportAndFix(context, node, messageId, data, properties, expectedOrder,
138
138
  fix(fixer) {
139
139
  const indentation = utils_1.CommentUtils.getObjectIndentation(sourceCode, objectExpression);
140
140
  const propNames = properties.map((p) => p.key.name);
141
- const filteredOrder = expectedOrder.filter((name) => propNames.includes(name));
141
+ const configuredProps = expectedOrder.filter((name) => propNames.includes(name));
142
+ const unconfiguredProps = propNames.filter((name) => !expectedOrder.includes(name));
143
+ const filteredOrder = [...configuredProps, ...unconfiguredProps];
142
144
  const propInfoMap = utils_1.CommentUtils.extractPropertyComments(sourceCode, properties, objectExpression, indentation);
143
145
  const sortedText = utils_1.CommentUtils.buildSortedPropertiesWithComments(filteredOrder, propInfoMap, indentation);
144
146
  return fixer.replaceText(objectExpression, `{\n${sortedText}\n${indentation.slice(0, -2)}}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/eslint-plugin",
3
- "version": "19.5.1-alpha.5",
3
+ "version": "19.5.1-alpha.7",
4
4
  "description": "ESLint plugin for Angular applications, following https://angular.dev/style-guide",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -18,11 +18,11 @@
18
18
  "LICENSE"
19
19
  ],
20
20
  "dependencies": {
21
- "@angular-eslint/bundled-angular-compiler": "19.5.1-alpha.5",
22
- "@angular-eslint/utils": "19.5.1-alpha.5"
21
+ "@angular-eslint/bundled-angular-compiler": "19.5.1-alpha.7",
22
+ "@angular-eslint/utils": "19.5.1-alpha.7"
23
23
  },
24
24
  "devDependencies": {
25
- "@angular-eslint/test-utils": "19.5.1-alpha.5"
25
+ "@angular-eslint/test-utils": "19.5.1-alpha.7"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@typescript-eslint/utils": "^7.11.0 || ^8.0.0",