microsoft / vscode-typescript-tslint-plugin

VS Code extension that provides TSLint support using the typescript-tslint-plugin
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin
MIT License
188 stars 35 forks source link

tslint.json file-name-casing rule shows incorrect warning when defining rules for multiple file types #60

Closed jedster1111 closed 5 years ago

jedster1111 commented 5 years ago

screen shot 2019-02-24 at 00 11 51

screen shot 2019-02-24 at 00 11 55

screen shot 2019-02-24 at 00 13 08

When using the file-name-casing rule and passing an object as an argument, there is a warning stating:

Incorrect type. Expected "string".
Value is not accepted. Valid values: "camel-case", "pascal-case", "kebab-case".(1)

Passing in an object works and is documented in the tslint docs here.

Simple repo here

I'm not 100% sure where is the best place to report this so sorry if this isn't the right place.

jedster1111 commented 5 years ago

I think I realised where I should have created this, so I've created a pull request now and will close this issue.