Tslint: More restrictive whitespaces

Created on 6 Dec 2017  ยท  3Comments  ยท  Source: palantir/tslint

One of the rules whitespace or no-irregular-whitespace should catch whitespaces in irregular places, e.g.:
image

As you can see now the code can look very inconsistent....

Formatting rule In Discussion Question ๐ŸŒน R.I.P. ๐ŸŒน

All 3 comments

TSLint core's been moving away from formatting rules for some time now. Examples: #3995 / #3568 / #2814 / #3330 / #1306. In particular, per the discussion in #3330: every feature comes with a maintenance cost.

/cc @JKillian / @adidahiya / @johnwiseheart / @ajafff for interest. Should TSLint...

  • ...continue to add options to whitespace and friends?
  • ...keep the formatting rules where they are as a baseline?
  • ...move the formatting rules to tslint-consistent-codestyle or another repository?

Related discussions: #628, #975, #3592

๐Ÿ’€ _It's time!_ ๐Ÿ’€

TSLint is being deprecated and no longer accepting pull requests for major new changes or features. See #4534. ๐Ÿ˜ฑ

If you'd like to see this change implemented, you have two choices:

  • Recommended: Check if this is available in ESLint + typescript-eslint โœ…
  • _Not Recommended: Fork TSLint locally_ ๐Ÿคทโ€โ™‚๏ธ

๐Ÿ‘‹ It was a pleasure open sourcing with you!

_If you believe this message was posted here in error, please comment so we can re-open the issue!_

๐Ÿค– 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