Skip to content
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

tslint.json outdated: 'no-any' with new option #678

Closed
ChristianIvicevic opened this issue May 1, 2019 · 1 comment · Fixed by #837
Closed

tslint.json outdated: 'no-any' with new option #678

ChristianIvicevic opened this issue May 1, 2019 · 1 comment · Fixed by #837

Comments

@ChristianIvicevic
Copy link

In the tslint plugin for VSCode I noticed that using no-any with a rather new option causes a false warning "Array has too many items according to schema. Expected 1 or fewer.":

{
    "rules": {
        "no-any": [true, { "ignore-rest-args": true }]
    }
}

After doing some research it seems the tslint server plugin of VSCode is based on your schemas hence I wanted to notify you that this rule has a new schema which is described in the documentation as well:

{
  "type": "object",
  "properties": {
    "ignore-rest-args": {
      "type": "boolean"
    }
  }
}
@ChrisMBarr
Copy link

Yes, this file is outdated for a few rules, see the linked issue above

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

Successfully merging a pull request may close this issue.

2 participants