Skip to content

yCodeTech/coding-standards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

Coding Standards

This is a little repo to document my coding standards and styles for easy reference.

Indentation

Tabs

1 Tab = 4 spaces

Curly brackets

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

else if and else blocks should be on a new line after the previous closing curly bracket

if () {
}
else if () {
}
else {
}

Git Commits

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 .

Commit types

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published