-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TSLint indent rule conflict #181
Comments
We've already disabled this rule, I guess you probably
|
Ahh, that would do it.
We added a ter-indent rule to change from 2 spaces to 4.
…On Thu, Aug 23, 2018 at 11:00 AM, Ika ***@***.***> wrote:
We've already disabled this rule
<https://github.com/alexjoverm/tslint-config-prettier/tree/master/src/tslint-eslint-rules/ter-indent>,
I guess you probably
- did not put tslint-config-prettier at the end of extends
<https://github.com/alexjoverm/tslint-config-prettier#get-started>, or
- your ter-indent rule is defined in the rules field, which overrides
rules from extends.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#181 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALnsylesb198DKj_oojaLEVvGlB7KHfks5uTsOJgaJpZM4WJsYn>
.
--
David Landry
|
You should not add that rule, since Prettier already takes care of that. That's why this package disables it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default, Prettier indents switch statements like this:
By default, TSLint's ter-indent rule expects indentation like this:
I was able to fix this by setting ter-indent's SwitchCase property (https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terIndentRule.md).
Is this something tslint-config-prettier should be setting? Is it my own fault for having a 'ter-indent' rule to begin with?
The text was updated successfully, but these errors were encountered: