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