@angular-eslint/eslint-plugin-template 19.4.1-alpha.17 → 19.4.1-alpha.19
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefer-at-empty.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-at-empty.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,UAAU,GAAG,eAAe,CAAC;AACzC,eAAO,MAAM,SAAS,oBAAoB,CAAC;;AAE3C,
|
|
1
|
+
{"version":3,"file":"prefer-at-empty.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-at-empty.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,UAAU,GAAG,eAAe,CAAC;AACzC,eAAO,MAAM,SAAS,oBAAoB,CAAC;;AAE3C,wBAwaG"}
|
|
@@ -190,6 +190,13 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
190
190
|
forBlock.empty.startSourceSpan.end.offset,
|
|
191
191
|
forBlock.empty.endSourceSpan.start.offset,
|
|
192
192
|
], empty);
|
|
193
|
+
// Remove the closing brace from the end of the `@else` block.
|
|
194
|
+
if (info.node.endSourceSpan) {
|
|
195
|
+
yield fixer.removeRange([
|
|
196
|
+
info.node.endSourceSpan.start.offset,
|
|
197
|
+
info.node.endSourceSpan.end.offset,
|
|
198
|
+
]);
|
|
199
|
+
}
|
|
193
200
|
}
|
|
194
201
|
else {
|
|
195
202
|
// There isn't an existing `@empty` block, so we can create
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin-template",
|
|
3
|
-
"version": "19.4.1-alpha.
|
|
3
|
+
"version": "19.4.1-alpha.19",
|
|
4
4
|
"description": "ESLint plugin for Angular Templates",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"aria-query": "5.3.2",
|
|
22
22
|
"axobject-query": "4.1.0",
|
|
23
|
-
"@angular-eslint/bundled-angular-compiler": "19.4.1-alpha.
|
|
24
|
-
"@angular-eslint/utils": "19.4.1-alpha.
|
|
23
|
+
"@angular-eslint/bundled-angular-compiler": "19.4.1-alpha.19",
|
|
24
|
+
"@angular-eslint/utils": "19.4.1-alpha.19"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/aria-query": "5.0.4",
|
|
28
|
-
"@angular-eslint/
|
|
29
|
-
"@angular-eslint/
|
|
28
|
+
"@angular-eslint/test-utils": "19.4.1-alpha.19",
|
|
29
|
+
"@angular-eslint/template-parser": "19.4.1-alpha.19"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@typescript-eslint/types": "^7.11.0 || ^8.0.0",
|