This is a little repo to document my coding standards and styles for easy reference.
Tabs
1 Tab = 4 spaces
Start curly brackets on if else blocks and functions should be on the same line as the declaration with a space before the curly bracket.
if () {
else {
function thing() {
else if
and else
blocks should be on a new line after the previous closing curly bracket
if () {
}
else if () {
}
else {
}
I use Conventional Commits with the extra commit types as described in Angular and also some from the Medium article - Conventional Commits: A Better Way .
- build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm).
- chore: Grunt tasks or maintenance changes that are not considered part of the codebase (editorconfig, prettier, version bumps, non-CI related files, etc).
- ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs).
- docs: Documentation only changes (README or Changelog).
- feat: A new feature.
- fix: A bug fix.
- image: Add or change image file(s).
- perf: A code change that improves performance.
- refactor: A code change that neither fixes a bug nor adds a feature.
- remove: The removal of a file or a feature (after a being deprecated first).
- revert: Revert code that was previously committed (must reference the commit ID(s) to link them).
- security: Improves security or resolves a security issue.
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc); or changes to CSS rules.
- test: Adding missing tests or correcting existing tests.