DEV Community

Discussion on: Maximum line length in your code

Collapse
 
gyandeeps profile image
Gyandeep Singh • Edited

Keep calm and use Prettier
Well this helped to get over it and now I use 80.

It helps because:

  • I can have other things open vertically along side code and still see the whole code.
  • Read the code on GitHub without horizontal scroll.
  • If you are used to writing stuff in straight line you can still write it. It will be auto fixed during commit (using pre-commit hook with prettier)
Collapse
 
buinauskas profile image
Evaldas Buinauskas

Yep! I do use prettier to format my code and have pre commit hook. This works really well.