@angular-eslint/template-parser 17.5.2-alpha.0 → 18.0.0-alpha.1

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.
@@ -37,7 +37,7 @@ function tryToFindTheVoidNodeThatMatchesTheSourceSpan(context, node) {
37
37
  // Previously, `codelyzer` used `TemplateParser` to parse a template into an AST tree.
38
38
  // The `TemplateParser` used `HtmlParser`, because `HtmlParser` still sets the end span
39
39
  // for void elements.
40
- const { rootNodes } = getHtmlParser().parse(context.getSourceCode().getText(), context.getFilename());
40
+ const { rootNodes } = getHtmlParser().parse(context.sourceCode.getText(), context.filename);
41
41
  return lookupTheVoidNode(rootNodes, node.sourceSpan);
42
42
  }
43
43
  function lookupTheVoidNode(rootNodes, sourceSpan) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/template-parser",
3
- "version": "17.5.2-alpha.0",
3
+ "version": "18.0.0-alpha.1",
4
4
  "description": "Angular Template parser for ESLint",
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": "17.5.2-alpha.0",
21
+ "@angular-eslint/bundled-angular-compiler": "18.0.0-alpha.1",
22
22
  "eslint-scope": "^8.0.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "eslint": "^7.20.0 || ^8.0.0",
25
+ "eslint": "^8.57.0 || ^9.0.0",
26
26
  "typescript": "*"
27
27
  },
28
28
  "gitHead": "e2006e5e9c99e5a943d1a999e0efa5247d29ec24"