This document provides guidelines for code formatting to developers contributing
Silverstripe authored npm dependencies are posted under the Silverstripe npm organisation.
Check our requirements documentation.
All symbols and documentation should use UK-English spelling (e.g. "behaviour" instead of "behavior"), except when necessitated by third party conventions (e.g. using "color" for CSS styles).
File and folder naming
client/folder on the top level of the module
- Frontend files relating to the
frameworkCMS UI should be placed in
- File names should follow the AirBnB Naming Conventions
client/src/componentsfolder should contain only React presentational components. These components should be self-contained, and shouldn't know about Redux state.
client/src/containersfolder should contain only React container components
- React classes in
client/src/containersshould have one folder per component, alongside a
README.mdand SCSS files where applicable.
client/src/statefolder should contain Redux actions, action types and reducers. Each set of these should be kept in a folder named the same as its reducer state key.
with their file name suffixed with
tests/subfolder alongside the module code.