codeclimate-tslint
codeclimate-tslint copied to clipboard
can't find local relative path extends file while running codeclimate cli
I'm running this locally on macOS:
codeclimate analyze -e tslint
I get this error:
Status: Downloaded newer image for codeclimate/codeclimate-tslint:latest
/usr/src/app/node_modules/tslint/lib/configuration.js:57
throw new error_1.FatalError("Failed to load " + configPath + ": " + error.message, error);
^
FatalError: Failed to load /tmp/codeclimate-tslint/555e9a39ea54d274f832fddf77000a691dda334543a8417690ea86ec2df87fd9.json: Invalid "extends" configuration value - could not require "./config/tslint-base". Review the Node lookup algorithm (https://nodejs.org/api/modules.html#modules_all_together) for the approximate method TSLint uses to find the referenced configuration file.
with a tslint.json
in base dir
that looks like:
{
"extends": ["tslint:recommended", "./config/tslint-base", "tslint-config-prettier"],
"exclude": ["node_modules", "public", "vendor"]
}
and the tslint-base.js
located in <base dir>/config/
of repo
or are relative paths not supported when using the codeclimate tslint engine ?
I'd appreciate any insight on this. Thanks!