Skip to content

Instantly share code, notes, and snippets.

@VitorLuizC
Last active June 17, 2021 17:30
Show Gist options
  • Save VitorLuizC/98489b0896cdd871f14837d8b6d3f13c to your computer and use it in GitHub Desktop.
Save VitorLuizC/98489b0896cdd871f14837d8b6d3f13c to your computer and use it in GitHub Desktop.
Exemplo correto e incorreto para guias de padrões e boas práticas escritas em Markdown.

Exemplo de correto e incorreto na horizontal

✅ Correto ❌ Incorreto
const user = {
  firstName: 'Vitor',
};
const user = {
  userFirstName: 'Vitor',
};
const user = {
  first_name: 'Vitor',
};
const user = {
  _firstName: 'Vitor',
  get firstName() {
    return this._firstName;
  },
};

Exemplo de correto e incorreto na vertical

✅ Correto
const user = {
  firstName: 'Vitor',
};
❌ Incorreto
const user = {
  userFirstName: 'Vitor',
};
const user = {
  first_name: 'Vitor',
};
const user = {
  _firstName: 'Vitor',
  get firstName() {
    return this._firstName;
  },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment