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
currently, formatting is done using eslint & standard. the first one is a linter actually warning when a line doesn't fit the formatting specs, but doesn't enforce a single representation of a code (one can add empty lines everywhere, or disabling eslint on a line disallow formatting). it's also only for JS/TS, not json, not markdown.
prettier is way better in my opinion, by ensuring that for a given code/AST, it always yield the same output, folding lines as needed, replacing quotes or adding/removing trailing commas automatically. it also works with many filetypes (looking at you vue), and is opiniated so no more bikesheding. it also provide a clear separation between formatting (nice code writing) and linting (bugs lurking), which is confortable.
The text was updated successfully, but these errors were encountered:
I updated your link so that our mention doesn't appear in their discussion feed.
Edit: it seems it is still in their feed, you may have to delete your comment to remove it.
fyi https://github.com/orgs/community/discussions/23123
currently, formatting is done using
eslint
&standard
. the first one is a linter actually warning when a line doesn't fit the formatting specs, but doesn't enforce a single representation of a code (one can add empty lines everywhere, or disabling eslint on a line disallow formatting). it's also only for JS/TS, not json, not markdown.prettier
is way better in my opinion, by ensuring that for a given code/AST, it always yield the same output, folding lines as needed, replacing quotes or adding/removing trailing commas automatically. it also works with many filetypes (looking at you vue), and is opiniated so no more bikesheding. it also provide a clear separation between formatting (nice code writing) and linting (bugs lurking), which is confortable.The text was updated successfully, but these errors were encountered: