Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular-eslint/template-parser

Package Overview
Dependencies
Maintainers
1
Versions
807
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-eslint/template-parser

Angular Template parser for ESLint

  • 18.4.3-alpha.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6M
decreased by-8.24%
Maintainers
1
Weekly downloads
 
Created

What is @angular-eslint/template-parser?

@angular-eslint/template-parser is a parser for Angular templates that integrates with ESLint. It allows developers to lint Angular templates using ESLint rules, ensuring code quality and consistency in Angular projects.

What are @angular-eslint/template-parser's main functionalities?

Parsing Angular Templates

This feature allows you to parse Angular templates into an Abstract Syntax Tree (AST), which can then be analyzed or transformed. The code sample demonstrates how to parse a simple Angular template.

const parser = require('@angular-eslint/template-parser');
const ast = parser.parse('<div>{{ title }}</div>');
console.log(ast);

Integration with ESLint

This feature allows you to integrate the template parser with ESLint, enabling you to apply ESLint rules to Angular templates. The code sample shows a basic ESLint configuration using the @angular-eslint/template-parser.

module.exports = {
  parser: '@angular-eslint/template-parser',
  plugins: ['@angular-eslint'],
  extends: ['plugin:@angular-eslint/recommended'],
  rules: {
    // custom rules
  }
};

Other packages similar to @angular-eslint/template-parser

FAQs

Package last updated on 29 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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