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

nglint-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nglint-cli

`nglint` is a tool for linting Angular apps.

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

nglint

nglint is a tool for linting Angular apps.

Installation

  • npm install --save-dev nglint-cli
  • yarn add --dev nglint-cli

Usage

  • nglint --help: display help info
  • nglint --version: display the installed version
  • nglint [--project ./tsconfig.json]: lint a project and report failures

Configuration

Add a nglint.json file at the root of your project to configure which rules to run.

{
  "rules": {
    "no-unused-component": true,
    "no-unused-component-binding": true
  }
}

Rules

  • no-usused-component: reports when a component is not used
  • no-unused-component-bindings: reports when a component input or output is not used

Why not use tsling?

These rules could be implemented as tslint rules. In fact, I originally did implement them as tslint rules. However, since these rules require the entire application structure to be read, applying these rules via tslint does not work as well. The tslint-language-service, for example, seemed to slow down the editor when applying the rules. Also, you don't get much benefit from continuously applying these kinds of rules in the editor. Therefore, I thought it would be best to ship these rules in a separate tool that can be run once when building a project.

FAQs

Package last updated on 31 Dec 2017

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