EU ๐ช๐บ | Art, Tech & Good Vibrations ๐คณ | Founder of แดแดแดแดสสแดแดก ๐ hellotomorrow.agency โข Just started working on a new endeavour ๐ usepoe.app โข Follow me on Twitter!
Location
Brussels, Belgium
Work
UX Engineer, Product Manager, sometimes Designer at Self
Well, instead of using a linter (such as eslint), it's recommended to use a formatter (two of the most used ones are prettier for JavaScript, TypeScript, JSON, CSS; and phpfmt for PHP. The reasone is that they assolve two slightly different roles.
In 99% of my projects I have a linter to protect me from syntax errors, and a formatter to beautify my code whenever I hit Cmd+S.
Sometimes I want to format the document but not save it yet, and that's when I use Alt+Shift+F.
Nothing is slower or takes longer though, the formatter takes literally less than the blink of an eye to do its work!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Well, instead of using a linter (such as
eslint
), it's recommended to use a formatter (two of the most used ones areprettier
for JavaScript, TypeScript, JSON, CSS; andphpfmt
for PHP. The reasone is that they assolve two slightly different roles.In 99% of my projects I have a linter to protect me from syntax errors, and a formatter to beautify my code whenever I hit
Cmd+S
.Sometimes I want to format the document but not save it yet, and that's when I use
Alt+Shift+F
.Nothing is slower or takes longer though, the formatter takes literally less than the blink of an eye to do its work!