You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
This is what happens when we run our local tslint with that configuration.
> node_modules\.bin\tslint --config .\tslint.json --project .\tsconfig.json
module.js:471
throw err;
^
Error: Cannot find module 'tslint/lib/lint'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\myApp\node_modules\tslint-microsoft-contrib\insecureRandomRule.js:7:12)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
How can we run tslint on a configuration that extends tslint-microsoft-contrib?
We have done a find-replace of tslint/lib/lint with tslint, which resolves the above error but causes another one:
Error:
Could not find implementations for the following rules specified in the configuration:
no-duplicate-key
use-strict
label-undefined
no-constructor-vars
no-unreachable
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.
The text was updated successfully, but these errors were encountered:
@Delagen Given that doing a a find-replace of tslint/lib/lint with tslint resolves the problem, would this repository welcome a PR that includes that fix?
closing as duplicate... but thank you for taking the time to submit this bug report, especially with so much detail. This is one of the nicest bug reports I've ever seen!
This is our environment
This is our tslint.json configuration.
This is what happens when we run our local
tslint
with that configuration.How can we run
tslint
on a configuration that extendstslint-microsoft-contrib
?See also: https://stackoverflow.com/questions/40749996/error-cannot-find-module-tslint-lib-lint-when-trying-to-extend-tslint-microso
We have done a find-replace of
tslint/lib/lint
withtslint
, which resolves the above error but causes another one:The text was updated successfully, but these errors were encountered: