Socket
Socket
Sign inDemoInstall

@angular-eslint/builder

Package Overview
Dependencies
227
Maintainers
1
Versions
701
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @angular-eslint/builder

Angular CLI builder for ESLint


Version published
Weekly downloads
1.1M
increased by4.78%
Maintainers
1
Install size
22.0 MB
Created
Weekly downloads
 

Package description

What is @angular-eslint/builder?

The @angular-eslint/builder package is an npm package that integrates ESLint into Angular CLI projects. It allows developers to lint their Angular TypeScript code using ESLint, which is a pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. With @angular-eslint/builder, developers can run lint checks as part of their build process or as a separate step in their development workflow.

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

Linting Angular TypeScript code

This feature allows developers to lint their Angular project's TypeScript code. The command 'ng lint' is used to execute the linting process, which checks the code for any issues or style violations based on the ESLint configurations.

ng lint

Customizable ESLint configurations

Developers can customize ESLint rules for their Angular projects. This code sample shows a snippet of an ESLint configuration file where specific rules for directive and component selectors are defined.

{
  "extends": "@angular-eslint/recommended",
  "rules": {
    "@angular-eslint/directive-selector": ["error", { "type": "attribute", "prefix": "app", "style": "camelCase" }],
    "@angular-eslint/component-selector": ["error", { "type": "element", "prefix": "app", "style": "kebab-case" }]
  }
}

Integration with Angular CLI

The package integrates with Angular CLI, allowing developers to add linting capabilities to their Angular CLI projects. This code sample shows how to configure the Angular workspace file (angular.json) to use @angular-eslint/builder for the linting process.

{
  "architect": {
    "lint": {
      "builder": "@angular-eslint/builder:lint",
      "options": {
        "lintFilePatterns": [
          "src/**/*.ts",
          "src/**/*.html"
        ]
      }
    }
  }
}

Other packages similar to @angular-eslint/builder

Changelog

Source

17.4.0 (2024-05-07)

🚀 Features

  • eslint-plugin: [no-duplicates-in-metadata-arrays] new rule (#1779)

🩹 Fixes

  • update dependency @angular/compiler to v17.3.4 (#1750)
  • update dependency eslint-scope to v8.0.1 (#1762)
  • update dependency @angular/compiler to v17.3.6 (#1775)
  • update typescript-eslint packages to v7.8.0 (#1786)
  • eslint-plugin: [sort-ngmodule-metadata-arrays] deprecate rule (#1781)
  • eslint-plugin-template: [attributes-order] calculate valueless structural directive start/end positions correctly (#1726)
  • schematics: update schema.json with latest from Angular (a5adbfc)

❤️ Thank You

  • “JamesHenry” @JamesHenry
  • Adrian Baran @abaran30
  • Brad Kovach @bradkovach

Readme

Source

@angular-eslint/builder

FAQs

Last updated on 07 May 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc