google / google/gts

gts indent doesn't match Google style

Open
#626 1 comment 0 reactions 0 assignees View on GitHub
priority: p3 type: bug
Dominant language
TypeScript
Stars
5.3k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

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:

```typescript
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.