-
Notifications
You must be signed in to change notification settings - Fork 887
Compiler option 'extends' requires a value of type string #3643
Comments
when i change {
"defaultSeverity": "error",
"extends": "tslint-eslint-rules",
"jsRules": {},
"rules": {}
} it's show how can i get the path of |
You are confusing |
I'm sure that i'm not confused. In version |
The same problem here.
to
to fix. |
|
Another confused user here. This has worked just fine for the past year. Just now we updated to tslint 5.9.1 and are seeing the same error:
Our {
"extends": [
"tslint:recommended",
"tslint-sonarts"
], Could you give us a bit more info on what has changed and how we can fix this again? In case it is indeed relevant, our tsconfig looks like {
"compileOnSave": false,
"compilerOptions": {
"lib": [
"dom",
"es2015"
],
"noImplicitAny": false,
"target": "es5",
"rootDir": "src",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"jsx": "preserve",
"baseUrl": "src",
"types": [
"p-elements-core",
"@types/jasmine",
"@types/underscore",
"@types/requirejs",
"../../src/types"
]
}
} |
@StanLee12 what are the exact CLI arguments you're using? I think you might be using the same invalid setup as the other reporters in this thread -- the @MartijnKooij there were some changes to the implementation of the |
Thanks for the extra explanation, I did not get it when @ajafff said we had the tslint instead of the tsconfig as our --project parameter. Thanks again, and for completeness and others. We changed: |
@ajafff @adidahiya I'm so sorry, it's my fault, thanks a lot! |
mocha-tslint is no longer working because of this problem as well. And there configFilePath should point to tslint.json. if i use tsconfig.json instead: It was always working with 5.8 |
@DaveXCS That's most likely caused by |
I tried to understand the problem in mocha-tslint but i don't really see a problem here: |
@DaveXCS The problem is this line: https://github.com/t-sauer/mocha-tslint/blob/0ba7f64be458cd74343a4149dff323d5bfd195a5/index.js#L24 I opened an issue for you: t-sauer/mocha-tslint#9 |
thanks for your help. |
this is shockingly poorly documented, just confusing and not intuitive at all. |
@devguyrun the CLI usage docs tell you to point |
error TS18001: A path in an 'extends' option must be relative or rooted, but '<%= sourcedir.split('/').map(x => '..').join('/') %
I got some other error. |
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
*fix linting and rest snapshot *fix ts-lint issue: Compiler option 'extends' requires a value of type string according to: palantir/tslint#3643
Bug Report
TypeScript code being linted
// code snippet
with
tslint.json
configuration:Actual behavior
Expected behavior
The text was updated successfully, but these errors were encountered: