Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Max line length and Prettier/ESLint #3

Open
tvharris opened this issue Nov 16, 2021 · 0 comments
Open

Max line length and Prettier/ESLint #3

tvharris opened this issue Nov 16, 2021 · 0 comments

Comments

@tvharris
Copy link

Prettier handles max line length loosely, whereas ESLint's max-len is a hard upper limit. If we want to handle the formatting with Prettier, while letting long lines (e.g., strings) trigger ESLint, we could use Prettier as a soft limit of 100 characters and ESLint as a hard limit of 120.

Prettier rule: "printWidth": 100
ESLint rule: "max-len": ["error", {"code": 120}]

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

No branches or pull requests

1 participant