-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong warnings in tslint.json for accepted configuration values #245
Comments
It seems like this is still a problem? Any ideas on this? |
I ran into the same issue, specifically with the |
Be sure to not only add the missing new rules, but also the new options and severity configuration for each rule. For example :
can now be set like this, to manage severity level :
I hope there is something to manage this case in json schemas, or it will be a very ugly schema with a lot of duplicate code... |
The ban rule is also invalid since it's no longer an array of banned functions/methods since v5.4.0. |
Other TSLint rules having the same issue ( "interface-name": false
"trailing-comma": false
"comment-format": false
"max-classes-per-file": false
"no-console": false
"member-ordering": false |
@Martin-Wegner this can be closed now, see #339 |
@tkrotoff thank you! But unfortunately there are a lot of new TSLint rules which produces a lot of warnings. For example:
|
@Martin-Wegner Well you can send a PR like I did |
I'm using VSCode 1.7.2, TSLint plugin 0.6.3, TSLint 4.0.1 and TypeScript 2.0.10.
When I open the tslint.json file in VSCode I get serveral wrong warnings about my configuration values:
"cyclomatic-complexity": true
->Incorrect type. Expected "array"
"no-consecutive-blank-lines": true
->Incorrect type. Expected "array"
"object-literal-key-quotes": [true, "consistent-as-needed"]
->Value is not an accepted value. Valid values: [true,false,"always","as-needed"]
"one-variable-per-declaration": true
->Incorrect type. Expected "array"
"only-arrow-functions": true
->Incorrect type. Expected "array"
"typedef": [true, "arrow-call-signature"]
->Value is not an accepted value. Valid values: [true,false,"call-signature","parameter","arrow-parameter","property-declaration","variable-declaration","member-variable-declaration"]
https://github.com/Microsoft/vscode-tslint/issues/132
palantir/tslint#1776
The text was updated successfully, but these errors were encountered: