Skip to content

Cannot extend lint process anymore #4344

Closed
@sinedied

Description

@sinedied

With the release of the beta28 version and due to this PR, we cannot extend the ng lint command which is a serious regression for my projects.

With the previous beta26, by changing the npm scripts section we could extend the lint process like this:

  "scripts": {
    "lint": "tslint \"src/**/*.ts\" \"e2e/**/*.ts\" && stylelint \"src/**/*.scss\" --syntax scss && htmlhint \"src\""

Now that this was removed, we cannot extend the behavior of ng lint anymore with the addition of stylelint and htmllint...

This is quite a regression, while I understand the move to the tslint API for better integration, it also complicates the process by hiding it behind JSON settings and kills any customization like the one I was doing. For the meanwhile I'll move my process to use npm scripts directly, but it would be nice to find some middle ground on this.

This sort of breaking changes kinda make me worry about the future of angular-cli, removing customization features like this are bad in a maintenance update (yeah I understand it's still beta, still).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions