Skip to content

Instantly share code, notes, and snippets.

@93HN
93HN / consolelog.js
Created April 10, 2024 17:40 — forked from leo-bianchi/consolelog.js
Js file with good practices tips.
// DEBUG
// Printing objects on console
const foo = {name: 'tom', age: 30};
const bar = {name: 'harry', age: 50};
const baz = {name: 'john', age: 19};
console.log({ foo, bar, baz }) // To show objects names on console.
// Styling with css
console.logo('%c My friends', 'color: orange; font-weight: bold');
// Console table
@93HN
93HN / conventional_commit_messages.md
Last active April 10, 2024 18:15 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commit Messages

Types

  • feat Commits, that adds or remove a new feature
  • fix Commits, that fixes a bug
  • refactor Commits, that rewrite/restructure your code, however does not change any API behaviour
  • perf Commits are special refactor commits, that improve performance
  • style Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc)
  • test Commits, that add missing tests or correcting existing tests
  • docs Commits, that affect documentation only
  • build Commits, that affect build components like build tool, ci pipeline, dependencies, project version, ...
  • ops Commits, that affect operational components like infrastructure, deployment, backup, recovery, ...