Socket
Socket
Sign inDemoInstall

@angular-eslint/template-parser

Package Overview
Dependencies
Maintainers
1
Versions
763
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-eslint/template-parser - npm Package Compare versions

Comparing version 17.5.3-alpha.1 to 17.5.3

2

dist/convert-source-span-to-loc.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc