Tslint: "whitespace" documentation

Created on 4 Feb 2019  ยท  5Comments  ยท  Source: palantir/tslint

Documentation not up to date https://palantir.github.io/tslint/rules/whitespace/

image

10 or 11?

It will be great to see "before/after" examples of this sub-rules.

Because now I can't understand what I'm doing wrong:
image

"ts-node": "8.0.2",
"tslint": "5.12.1",
"typescript": "3.2.4",
Question ๐ŸŒน R.I.P. ๐ŸŒน

Most helpful comment

The documentation looks wrong in the source code: https://github.com/palantir/tslint/blob/28ae0c1e6b3e1c578d5d5a326a94cdf3f1e5eb6d/src/rules/whitespaceRule.ts#L43

open to PRs to fix; we'll rebuild the docs site during the next minor release

I agree with @pronebird's suggestion that you should run the auto fixer. If you still get errors after that, then it could be a bug.

All 5 comments

For diagnostics, can you run tsint with --fix to see what it will do? ๐Ÿ˜†

@WuglyakBolgoink i am having the same problem, have you found a way to understand this?

The documentation looks wrong in the source code: https://github.com/palantir/tslint/blob/28ae0c1e6b3e1c578d5d5a326a94cdf3f1e5eb6d/src/rules/whitespaceRule.ts#L43

open to PRs to fix; we'll rebuild the docs site during the next minor release

I agree with @pronebird's suggestion that you should run the auto fixer. If you still get errors after that, then it could be a bug.

โ˜ ๏ธ TSLint's time has come! โ˜ ๏ธ

TSLint is no longer accepting most feature requests per #4534. See typescript-eslint.io for the new, shiny way to lint your TypeScript code with ESLint. โœจ

It was a pleasure open sourcing with you all!

๐Ÿค– Beep boop! ๐Ÿ‘‰ TSLint is deprecated ๐Ÿ‘ˆ _(#4534)_ and you should switch to typescript-eslint! ๐Ÿค–

๐Ÿ”’ This issue is being locked to prevent further unnecessary discussions. Thank you! ๐Ÿ‘‹

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DanielKucal picture DanielKucal  ยท  3Comments

Ne-Ne picture Ne-Ne  ยท  3Comments

ypresto picture ypresto  ยท  3Comments

mrand01 picture mrand01  ยท  3Comments

rajinder-yadav picture rajinder-yadav  ยท  3Comments