angular-cli: All errors assumed to be lint errors
Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX 10.9.5
- Versions. Please run
ng --version
. If there’s nothing outputted, please run in a Terminal: node --version And paste the result here.
v5.6.0
- Repro steps. Was this an app that wasn’t created using the CLI? What change did you do on your code? etc.
Run ng lint
the rule loader throws an error but this line assumes it is a lint error showing the following confusing message.
> tslint "src/**/*.ts"
Lint errors found in the listed files.
- The log given by the failure. Normally this include a stack trace and some more information.
[Error: Command failed: /bin/sh -c npm run lint
/project-folder/node_modules/tslint/lib/ruleLoader.js:29
throw new Error(errorMessage);
^
Error: Could not find the following rules specified in the configuration:
host-parameter-decorator
input-parameter-decorator
output-parameter-decorator
attribute-parameter-decorator
input-property-directive
output-property-directive
at Object.loadRules (/project-folder/node_modules/tslint/lib/ruleLoader.js:29:15)
at Linter.lint (/project-folder/node_modules/tslint/lib/tslint.js:25:44)
at processFile (/project-folder/node_modules/tslint/lib/tslint-cli.js:118:29)
at Array.forEach (native)
at Object.<anonymous> (/project-folder/node_modules/tslint/lib/tslint-cli.js:128:41)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
- Mention any other details that might be useful.
Thanks! We’ll be in touch soon.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 26 (11 by maintainers)
Commits related to this issue
- refactor(lint): use tslint api for linting Closes #867, #3993 BREAKING CHANGE: In order to use the new `ng lint` command, the following section will have to be added to the project's `angular-cl... — committed to delasteve/angular-cli by delasteve 7 years ago
- refactor(lint): use tslint api for linting Closes #867, #3993 BREAKING CHANGE: In order to use the new `ng lint` command, the following section will have to be added to the project's `angular-cl... — committed to delasteve/angular-cli by delasteve 7 years ago
- refactor(lint): use tslint api for linting Closes #867, #3993 BREAKING CHANGE: In order to use the updated `ng lint` command, the following section will have to be added to the project's `angula... — committed to delasteve/angular-cli by delasteve 7 years ago
- refactor(lint): use tslint api for linting Closes #867, #3993 BREAKING CHANGE: In order to use the updated `ng lint` command, the following section will have to be added to the project's `angula... — committed to delasteve/angular-cli by delasteve 7 years ago
- refactor(lint): use tslint api for linting (#4248) Closes #867, #3993 BREAKING CHANGE: In order to use the updated `ng lint` command, the following section will have to be added to the project... — committed to angular/angular-cli by delasteve 7 years ago
- refactor(lint): use tslint api for linting (#4248) Closes #867, #3993 BREAKING CHANGE: In order to use the updated `ng lint` command, the following section will have to be added to the project... — committed to MRHarrison/angular-cli by delasteve 7 years ago
https://github.com/angular/angular-cli/pull/848 fixes this issue.
Until @hansl does a release, change the bottom part of your tslint.json to: https://github.com/angular/angular-cli/pull/848/files#diff-53fb140e7018814de9f2e231a3eb95a1R65
Confirmed, that fixed it. But we may want to look at how it’s swallowing useful error information as well.