I have the following directory structure:
I configured the plugin with config: frontend/tslint.json and because my configuration contains:
{
"extends": [
"./tslint-ng.json",
"tslint-config-prettier"
],
...
}
I get the following error when executing the analysis:
Running tslint: Done!
error: (CC::CLI::Analyze::EngineFailure) engine tslint failed with status 1 and stderr
/usr/src/app/node_modules/tslint/lib/configuration.js:55
throw new error_1.FatalError("Failed to load " + configPath + ": " + error.message, error);
^
FatalError: Failed to load /tmp/codeclimate-tslint/9ddea5fbe123e05b4a94f1fd95a13b767785a76dd11b5242cac373a8bedca685.json: Invalid "extends" configuration value - could not require "./tslint-ng.json". 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.
at FatalError.Error (native)
at new FatalError (/usr/src/app/node_modules/tslint/lib/error.js:27:28)
at Object.findConfiguration (/usr/src/app/node_modules/tslint/lib/configuration.js:55:15)
at new TsLinter (/usr/src/app/dist/tsLinter.js:33:57)
at Object.<anonymous> (/usr/src/app/dist/index.js:26:18)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
I have the following directory structure:
I configured the plugin with
config: frontend/tslint.jsonand because my configuration contains:{ "extends": [ "./tslint-ng.json", "tslint-config-prettier" ], ... }I get the following error when executing the analysis: