@angular-eslint/template-parser
Advanced tools
Comparing version 17.5.3-alpha.1 to 17.5.3
@@ -40,3 +40,3 @@ "use strict"; | ||
// for void elements. | ||
const { rootNodes } = getHtmlParser().parse(context.sourceCode.getText(), context.filename); | ||
const { rootNodes } = getHtmlParser().parse(context.getSourceCode().getText(), context.getFilename()); | ||
return lookupTheVoidNode(rootNodes, node.sourceSpan); | ||
@@ -43,0 +43,0 @@ } |
@@ -45,7 +45,2 @@ import type { ParseError } from '@angular-eslint/bundled-angular-compiler'; | ||
export declare function parse(code: string, options: ParserOptions): AST; | ||
export declare const version: string; | ||
export declare const meta: { | ||
name: string; | ||
version: string; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.meta = exports.version = exports.parse = exports.parseForESLint = exports.createTemplateParseError = exports.TemplateParseError = void 0; | ||
exports.parse = exports.parseForESLint = exports.createTemplateParseError = exports.TemplateParseError = void 0; | ||
const bundled_angular_compiler_1 = require("@angular-eslint/bundled-angular-compiler"); | ||
@@ -221,3 +221,3 @@ const eslint_scope_1 = require("eslint-scope"); | ||
} | ||
// TODO: Investigate no longer suppressing parse errors by default in v19 | ||
// TODO: Stop suppressing parse errors by default in v18 | ||
const suppressParseErrors = options.suppressParseErrors ?? true; | ||
@@ -242,8 +242,1 @@ if (!suppressParseErrors && angularCompilerResult.errors?.length) { | ||
exports.parse = parse; | ||
// NOTE - we cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
exports.version = require('../package.json').version; | ||
exports.meta = { | ||
name: 'angular-eslint/template-parser', | ||
version: exports.version, | ||
}; |
{ | ||
"name": "@angular-eslint/template-parser", | ||
"version": "17.5.3-alpha.1", | ||
"version": "17.5.3", | ||
"description": "Angular Template parser for ESLint", | ||
@@ -21,7 +21,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"@angular-eslint/bundled-angular-compiler": "17.5.3-alpha.1", | ||
"@angular-eslint/bundled-angular-compiler": "17.5.3", | ||
"eslint-scope": "^8.0.0" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^8.57.0 || ^9.0.0", | ||
"eslint": "^7.20.0 || ^8.0.0", | ||
"typescript": "*" | ||
@@ -28,0 +28,0 @@ }, |
# @angular-eslint/template-parser | ||
Please see https://github.com/angular-eslint/angular-eslint for full usage instructions and guidance. | ||
The `@angular-eslint/template-parser` package is a custom parser for ESLint which allows you to write lint rules and run linting using ESLint on Angular templates. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
18018
359
2
+ Added@angular-eslint/bundled-angular-compiler@17.5.3(transitive)
+ Added@eslint/eslintrc@2.1.4(transitive)
+ Added@eslint/js@8.57.0(transitive)
+ Added@humanwhocodes/config-array@0.11.14(transitive)
+ Added@humanwhocodes/object-schema@2.0.3(transitive)
+ Added@ungap/structured-clone@1.2.0(transitive)
+ Addeddoctrine@3.0.0(transitive)
+ Addedeslint@8.57.0(transitive)
+ Addedeslint-scope@7.2.2(transitive)
+ Addedespree@9.6.1(transitive)
+ Addedfile-entry-cache@6.0.1(transitive)
+ Addedflat-cache@3.2.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobals@13.24.0(transitive)
+ Addedgraphemer@1.4.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedtype-fest@0.20.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removed@angular-eslint/bundled-angular-compiler@17.5.3-alpha.1(transitive)
- Removed@eslint/config-array@0.18.0(transitive)
- Removed@eslint/eslintrc@3.1.0(transitive)
- Removed@eslint/js@9.10.0(transitive)
- Removed@eslint/object-schema@2.1.4(transitive)
- Removed@eslint/plugin-kit@0.1.0(transitive)
- Removed@humanwhocodes/retry@0.3.0(transitive)
- Removedeslint@9.10.0(transitive)
- Removedeslint-visitor-keys@4.0.0(transitive)
- Removedespree@10.1.0(transitive)
- Removedfile-entry-cache@8.0.0(transitive)
- Removedflat-cache@4.0.1(transitive)
- Removedglobals@14.0.0(transitive)