Skip to content

[Angular CLI: 6.0.0] ng lint Invalid lint configuration. Nothing to lint. #10842

@akinorew

Description

@akinorew

Versions

Angular CLI: 6.0.0
Node: 9.0.0
OS: darwin x64
Angular: 6.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, http, language-service, platform-browser
... platform-browser-dynamic, router, upgrade

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.0
@angular-devkit/schematics        0.6.0
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.0
@schematics/update                0.6.0
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.6.0

macOS (High Sierra)

Repro steps

Running ng lint.
The files are linted but there is still an error "Invalid lint configuration. Nothing to lint.". Same effect when success and error.

      "lint": {
                    "builder": "@angular-devkit/build-angular:tslint",
                    "options": {
                        "tslintConfig": "tslint.json",
                        "tsConfig": [
                            "tsconfig.app.json"
                        ],
                        "files": [
                            "source/**/*.ts"
                        ],
                        "exclude": [
                            "source/**/*.spec.ts",
                            "source/**/*.mock.ts"
                        ]
                    }
                }

Observed behavior

screen shot 2018-05-14 at 15 19 55

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions