mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #6378 from open-sausages/pulls/4.0/english-coding-conventions
Clarify UK-english in coding conventions
This commit is contained in:
commit
55a9496ad7
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user