codeclimate-tslint icon indicating copy to clipboard operation
codeclimate-tslint copied to clipboard

can't find local relative path extends file while running codeclimate cli

Open dfuentes77 opened this issue 5 years ago • 1 comments

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

dfuentes77 avatar Nov 15 '19 08:11 dfuentes77

or are relative paths not supported when using the codeclimate tslint engine ?

I'd appreciate any insight on this. Thanks!

dfuentes77 avatar Nov 18 '19 21:11 dfuentes77