You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
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 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}]
The text was updated successfully, but these errors were encountered: