lbry.tech/documents/styleguide.md
2018-08-06 17:51:32 -05:00

445 B

title
Styleguide

CSS

  • Styles should never override
  • IDs do not belong in stylesheets
  • Nesting is should be a maximum of three levels deep
  • BEM is your friend
  • Nested includes should be at the top of rules
  • CSS parameters in alphabetical order, except for presentation styles

JS

  • No trailing commas
  • Semicolons are there to protect you from yourself
  • Use strict comparing (!== / ===), as false-y values are evil