Merge pull request #6378 from open-sausages/pulls/4.0/english-coding-conventions

Clarify UK-english in coding conventions
This commit is contained in:
Damian Mooyman 2016-12-12 10:29:46 +13:00 committed by GitHub
commit 55a9496ad7
2 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,11 @@ as well as the [AirBnB React Conventions](https://github.com/airbnb/javascript/t
A lot of their rules can be validated via [ESLint](http://eslint.org/),
and can be checked locally via `npm run lint`.
## Spelling
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
- All frontend files (CSS, JavaScript, images) should be placed in

View File

@ -34,6 +34,11 @@ linefeed combination (CRLF) as is standard for the Windows OS (0x0D, 0x0A).
Class, function, variable and constant names may only contain alphanumeric characters and underscores.
## Spelling
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 PHP's `Serializable` interface).
### Classes
Class and filenames are in `UpperCamelCase` format: