Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

A path in an 'extends' option must be relative or rooted, but 'tslint:all' is not. #3657

Closed
ghost opened this issue Jan 16, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 16, 2018

Bug Report

  • TSLint version: 5.9.1
  • TypeScript version: 2.6.2
  • Running TSLint via: (pick one) CLI

with tslint.json configuration:
i had this until 5.9.1 (with 5.8.0 it was no problem)
"extends": [ "tslint:latest" ],
this will throw now this error:
error TS5024: Compiler option 'extends' requires a value of type string.
tried this:
"extends": "tslint:latest",
and got this error:
error TS18001: A path in an 'extends' option must be relative or rooted, but 'tslint:latest' is not.

@ajafff
Copy link
Contributor

ajafff commented Jan 16, 2018

Closing as duplicate of #3643. Please see that other issue for a detailed explanation.

@ajafff ajafff closed this as completed Jan 16, 2018
@fregante
Copy link

Hello Google user! If you're NOT using tslint, you're in the wrong place, you're looking for:

microsoft/TypeScript#18865

You may be running into this issue because TypeScript can't find what you're extending.

If you're trying to extend a module, e.g. "extends": "@sindresorhus/tsconfig", you have to make sure it's installed where you're calling tsc

  • if you're calling tsc locally, what you're extending needs to be installed locally (npm install @sindresorhus/tsconfig)

Or just make sure you're calling the local tsc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants