I have a new workspace for a library I am maintaining. We have 2 custom TSLint rules that we were using in Angular 5 that did not leverage the Angular CLI. We are now moving to Angular CLI and Angular 7.
One thing we had working was not needing to compile these TSLint rules to JS before TSLint would pick them up. However, this required ts-node
to be used in our package.json
's lint script.
How can I tell ng
to pickup these TypeScript TSLint rule files?
tsconfig.json
(in projects/my-lib/src
)
{
"rulesDirectory": "./lib/tslint-rules"
}
Then, in our main workspace, we extend this tsconfig
from the library and add our custom rule.
Could not find implementations for the following rules specified in the configuration:
my-custom-tslint-rule
Try upgrading TSLint and/or ensuring that you have all necessary custom rules installed.
If TSLint was recently upgraded, you may have old rules configured which need to be cleaned up.
angular-cli
or not – jahllerts-node
to run the linter, in that case. Now, I want to useng
to run limiting if possible – Ben Martin