We use the official Scala Style Guide as a base for formatting.
Areas where we are differing from the style guide:
scala
java
__blank line__
all other imports
__blank line__
io.narrative
An IntelliJ Scala Code Style Scheme is provided here to help with enforcing these guidelines.
We use the official Vue Style Guide as a base for formatting.
Key clarification within the style guide:
Within Vue files we will be using 2 spaces instead of tabs for indentation. Ideally setup your IDE to auto insert these for you.
Recommended way to reference getters and actions within pages or components is to use the mapGetters
and mapActions
helper functions from Vuex. These ensure we do not accidentally manipulate state from outside the Vuex Store.