@angular-eslint/eslint-plugin-template 18.2.1-alpha.1 → 18.2.1-alpha.2
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.
|
@@ -22,7 +22,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
22
22
|
create(context) {
|
|
23
23
|
const parserServices = (0, utils_1.getTemplateParserServices)(context);
|
|
24
24
|
// angular 18 doesnt support self closing tags in index.html
|
|
25
|
-
if (context.physicalFilename
|
|
25
|
+
if (/src[\\/]index\.html$/.test(context.physicalFilename)) {
|
|
26
26
|
// If it is, return an empty object to skip this rule
|
|
27
27
|
return {};
|
|
28
28
|
}
|
|
@@ -71,7 +71,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
71
71
|
if (sourceSpan.toString().includes(ngContentCloseTag)) {
|
|
72
72
|
const whiteSpaceContent = sourceSpan
|
|
73
73
|
.toString()
|
|
74
|
-
.match(
|
|
74
|
+
.match(/<ng-content[^>]*>(\s*)<\/ng-content>/m)
|
|
75
75
|
?.at(1);
|
|
76
76
|
const hasContent = typeof whiteSpaceContent === 'undefined';
|
|
77
77
|
if (hasContent) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin-template",
|
|
3
|
-
"version": "18.2.1-alpha.
|
|
3
|
+
"version": "18.2.1-alpha.2",
|
|
4
4
|
"description": "ESLint plugin for Angular Templates",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"LICENSE"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-eslint/bundled-angular-compiler": "18.2.1-alpha.
|
|
22
|
-
"@angular-eslint/utils": "18.2.1-alpha.
|
|
21
|
+
"@angular-eslint/bundled-angular-compiler": "18.2.1-alpha.2",
|
|
22
|
+
"@angular-eslint/utils": "18.2.1-alpha.2",
|
|
23
23
|
"aria-query": "5.3.0",
|
|
24
24
|
"axobject-query": "4.1.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@angular-eslint/test-utils": "18.2.1-alpha.
|
|
27
|
+
"@angular-eslint/test-utils": "18.2.1-alpha.2",
|
|
28
28
|
"@types/aria-query": "5.0.4"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|