@angular-eslint/eslint-plugin-template 19.0.1-alpha.4 → 19.0.1-alpha.5
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":"get-dom-elements.d.ts","sourceRoot":"","sources":["../../src/utils/get-dom-elements.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-dom-elements.d.ts","sourceRoot":"","sources":["../../src/utils/get-dom-elements.ts"],"names":[],"mappings":"AAYA,wBAAgB,cAAc,IAAI,WAAW,CAAC,MAAM,CAAC,CAIpD"}
|
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDomElements = getDomElements;
|
|
4
4
|
const aria_query_1 = require("aria-query");
|
|
5
|
+
const nonAriaElements = [
|
|
6
|
+
'slot',
|
|
7
|
+
'rb',
|
|
8
|
+
'template',
|
|
9
|
+
// The Angular compiler has special handling for math and svg as namespaces. Their children have the namespace in the node name too.
|
|
10
|
+
':svg:svg',
|
|
11
|
+
':math:math',
|
|
12
|
+
];
|
|
5
13
|
let domElements = null;
|
|
6
14
|
function getDomElements() {
|
|
7
|
-
return domElements ?? (domElements = new Set(aria_query_1.dom.keys()));
|
|
15
|
+
return (domElements ?? (domElements = new Set([...aria_query_1.dom.keys(), ...nonAriaElements])));
|
|
8
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin-template",
|
|
3
|
-
"version": "19.0.1-alpha.
|
|
3
|
+
"version": "19.0.1-alpha.5",
|
|
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.0.1-alpha.
|
|
24
|
-
"@angular-eslint/utils": "19.0.1-alpha.
|
|
23
|
+
"@angular-eslint/bundled-angular-compiler": "19.0.1-alpha.5",
|
|
24
|
+
"@angular-eslint/utils": "19.0.1-alpha.5"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/aria-query": "5.0.4",
|
|
28
|
-
"@angular-eslint/template-parser": "19.0.1-alpha.
|
|
29
|
-
"@angular-eslint/test-utils": "19.0.1-alpha.
|
|
28
|
+
"@angular-eslint/template-parser": "19.0.1-alpha.5",
|
|
29
|
+
"@angular-eslint/test-utils": "19.0.1-alpha.5"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@typescript-eslint/types": "^7.11.0 || ^8.0.0",
|