influxdata / influxdata/ui

chore: set max / preferred line lengths in prettier config

Open
#5,766 0 comments 0 reactions 0 assignees View on GitHub
enhancement kind/bug team/dumplings team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

The current version of [prettier](https://prettier.io/docs/en/options.html) tries to enforce line widths around 80 characters unless there's another setting in place. We should probably have a preferred line width in place in our prettierrc.json. The absence of this setting is causing some odd behavior in forcing line-width changes in saved files on lines of code that are not being changed.

Here is [one example](https://github.com/influxdata/ui/pull/5740).

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the repository's prettierrc.json and read the linked Prettier options documentation, then determine the intended maximum or preferred line width. Update the configuration so saved files do not reflow unrelated lines, and verify the behavior against the example in pull request 5740.

Written by the indexing model from the issue text.

Assessment

Tech stack
json, typescript
Domain
tooling
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.