Skip to content

wearelighthouse/front-end-dev-checklist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Front-end Dev Checklist

A standard, but always work-in-progress, set of front-end dev requirements for work that Lighthouse does for both internal, and client projects. If can be included in a particular project by copy-pasting the relevant sections into a new pull request template.

General

  • I've included the Front-end Dev Checklist in my PR.
  • Filenames correctly match a single template, component, function, etc. inside each file.
  • 'Magic numbers' (including color codes) are assigned to suitable variable names, or have explanatory comments.
  • TODOs have been documented elsewhere or have been removed.
  • console.log()s. var_dumps or other temporary debugging techniques have been removed.
  • No build task or browser warnings/errors have been introduced.
  • Unused code has been removed rather than commented-out.

HTML

CSS

  • BEM class names match up with HTML structure.
  • Class names have the correct namespace prefixes (c-, o-, s-, t-, u-).
  • Utility classes e.g. u-ml-4 and u-color-red have been used instead of hardcoded values.
  • Pseudo-classes & attribute selectors have been used over class-based selectors where possible.
  • Type selectors have only been used within reset, scope, or third-party classes.
  • Interactive elements have :hover, :focus and :focus-visible states.

JavaScript

  • Gracefully degrades without client-side JavaScript where possible.

Assets (SVG, IMG, etc.)

  • Unnecessary attributes have been removed (either manually, or by using a tool like SVGOMG).
  • Alt tags or visually-hidden text has been included to describe images.
  • <img>s have loading="lazy" and width and height attributes if possible.

Browser & device support

  • Tested across multiple screen sizes.
  • Tested across multiple browsers.
  • Tested across multiple devices.
  • Checked caniuse.com for support of particular features.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages