Skip to content
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

gts indent doesn't match Google style #626

Open
gcc42 opened this issue Feb 27, 2021 · 1 comment
Open

gts indent doesn't match Google style #626

gcc42 opened this issue Feb 27, 2021 · 1 comment

Comments

@gcc42
Copy link

gcc42 commented Feb 27, 2021

Specifically when breaking lines. Google style has good line break rules that prettier's indent rules conflicts with. Given that gts enforces prettier/prettier, my fix gives me breaks like this:

new Error('This is a long string that we'll need to break. Google style'
    + 'recommends continuing at at least +4 spaces, while prettier enforces +2');

Here's the corresponding rule: https://google.github.io/styleguide/jsguide.html#formatting-indent

@bcoe
Copy link
Contributor

bcoe commented Jun 6, 2022

@gcc42 I agree, we should make an effort to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants