New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[schematics/angular] Use module resolution for codelyzer in tslint.json #13100
Comments
Hi, thanks for reporting this, but this issue is not caused by Angular CLI.
Thanks. |
@alan-agius4 that's not true, tslint does support module resolution:
And as I mentioned in the original issue, I tested this and it works :) |
HI, you are right. Sorry about, re-opening. That said it is important to highlight that deep linking to our tslint.json is not something that we support and might break in the future. |
Tslint will try to resolve modules using node module resolution. https://palantir.github.io//tslint/usage/configuration/ Fixes #13100
Tslint will try to resolve modules using node module resolution. https://palantir.github.io//tslint/usage/configuration/ Fixes #13100
@alan-agius4 thanks! 👍
Sure, that's fine by me since tslint will error out when an extended file can't be found. But generally, wouldn't it be better if |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
I'd like to extend my
tslint.json
with the defaults from Angular's schematics, using this syntax:The log given by the failure
ng lint
andtslint -p .
both fail with this error:The problem seems to be that relative paths in
rulesDirectory
are resolved from the location of the extendedtslint.json
insidenode_modules/
, rather than thetslint.json
in my project's root.Desired functionality
The
tslint.json
template in@schematics/angular
should just use module resolution ("rulesDirectory": ["codelyzer"]
), this seems to work here without any issues.The text was updated successfully, but these errors were encountered: