Skip to content

Coding practices

tjamesmac edited this page Jul 2, 2020 · 5 revisions

Coding practices

When to use different writing conventions?

We employ several naming conventions within the codebase

  • Camel case
  • Snake case
  • Kebab case

Camel case

Used when working with JavaScript; this includes file names, variables, components and pretty much anything else.

Camel case is not used when naming constants that are capitalised, Snake case is used instead.

Kebab case

Used for importing dependencies within JavaScript based code

Snake case

Used with naming variables in Python. We don't primarily work with Python but we do maintain eq-survey-runner

Snake case is also used with naming constants in JavaScript. It is also used when naming graphql queries/mutations etc.

Clone this wiki locally