Skip to content

Instantly share code, notes, and snippets.

@wouterkroes
Last active June 18, 2018 07:04
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wouterkroes/8e918e1d58f42ba0d6c2d3cab56a340a to your computer and use it in GitHub Desktop.
Save wouterkroes/8e918e1d58f42ba0d6c2d3cab56a340a to your computer and use it in GitHub Desktop.

Frontend guidelines

As frontend developers we are constantly adopting and discovering new ways of developing software. By doing this we are raising the bar of professional software development, creating a community and helping others along the way.

Consider these guidelines as a baseline, the starting point of your software.

General

  • The project should have a vision/manifesto.
  • The project should be written consistent.
  • The project should be reviewed, preferably in the form of a code review.
  • The project should be stored in a versioning system.
  • The project should be written according to a methodology.
  • The project should have a strategy how to keep it's dependencies up-to-date.
  • The project should be tested.
  • The project should have a code coverage/inspection tool.
  • The project should have a state management system.
  • The project applies PWA principles where possible.
    • For instance: PWA.
  • The project should generate a style guide.

Coding

  • Attempt to make use of the best-practice language features when possible.
  • Strive for the best fit, therefore follow programming principles.
  • Use proven community developed frameworks/libraries over custom builds.

Performance

  • The project should be served in the best suitable (minified) format
  • The project should have a minimum score of X.
  • The performance budget should never be exceeded.

HTML

(S)CSS

  • The (s)css should pass the linting rules.
  • The class names should be according to a naming convention.
    • For instance: BEM.

JS

  • The Javascript should pass the linting rules.
  • The Javascript documentation should follow a format.
  • The Javascript should be typed.

Font

Accessibility

  • The project should be accessible for people with disabilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment