-
Notifications
You must be signed in to change notification settings - Fork 889
Move some rules of tslint-consistent-codestyle to tslint core #2040
Comments
Re #3442 - should |
Re blockers: Since all utilities are now moved to
|
Any news? :) |
Anything I can do to help with the porting of these? I'd also love to see these rules in core soon. |
This was fixed by #3607:
🙌 |
Sure, I could see this as a single rule which enforces either only
👍
👍
👍
👍
👍 |
#3750 Addresses prefer-while rule |
@ajafff Any news ? I would love to have the no-else-return / no-unnecessary-else rule in the tslint core |
@VincentLanglet I'm no longer involved in maintaining TSLint. In fact I don't want to invest any time in contributing to this mess. Therefore I'm closing this issue. Anyone who is interested in porting the rules can do so. Keep in mind that copied code without substantial changes needs to retain the original license. |
This is about moving some of my custom rules developed in https://github.com/ajafff/tslint-consistent-codestyle to tslint core
@adidahiya suggested that first in #1802
@andy-hanson reminded me in #2037 (comment)
I'd like to get your feedback first which rule you'd like me to contribute:
no-angle-bracket-type-assertion
. This one is just my own preference. Do you want to provide two conflicting rules? Maybe they could be merged into one rule with a config option.no-unnecessary-else
this
in static methodsno-else-after-return
with added support forthrow
,break
andcontinue
. Parts of that rule could be used to fixno-switch-case-fallthrough
#950, #1033 and #1538object-literal-sort-key
, but could be introduced as a new option for that rulefor(;;)
andfor(;foo===bar;)
This is kind of blocked by #1900 (comment) to avoid being penalized by the performance of
SyntaxWalker
Another question is how to handle the utility functions in https://github.com/ajafff/tslint-consistent-codestyle/blob/master/src/utils.ts and https://github.com/ajafff/tslint-consistent-codestyle/blob/master/src/typeguard.ts
Should they all be copied to src/language/utils.ts or do we want to start splitting utils.ts into several files?
The text was updated successfully, but these errors were encountered: