Skip to content

Make examples in documentation narrow #2717

@dwgray

Description

@dwgray

Clear and concise description of the problem

In order to make the examples more readable on smaller displays, it would be convenient to make the code narrower - this is certainly true for phones, but would also be helpful on smaller laptops...

Suggested solution

Our current prettier setting is 100 for line width. Setting this to something smaller for things in the docs directory and running prettier over everything should be possible. https://app.studyraid.com/en/read/15038/520152/overriding-prettierjs-defaults-for-specific-files

My suggestion would be 70 chars.

Also consider setting: https://prettier.io/docs/options#single-attribute-per-line

Alternative

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions