Skip to content

Naming conventions

Joshua Chapman edited this page Feb 23, 2023 · 3 revisions

When to use different writing conventions?

We employ several naming conventions within the codebase

  • Camel case (e.g. helloWorld)
  • Snake case (e.g. hello_world)
  • Kebab case (e.g. hello-world)

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.

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

Clone this wiki locally