aizatto.com
search
Ctrlk
  • aizatto.com
  • Table of Contents
  • Portfolio, Projects, Tools, Toys
  • Interview Guidechevron-right
  • Engineering Codechevron-right
    • Communication
    • Different Types of Coding
    • Commit Messages
    • Reviewing Codechevron-right
    • Writing Codechevron-right
      • Consistency
      • Writing for a code base of 1,000,000+ Lines
      • Write Code Knowing It Will Be Refactored
      • Namingchevron-right
      • Commentingchevron-right
      • Make It Easy To Reproduce
      • Scripts
      • 80 character limit
      • Exit Early
      • Be careful of enum in switch statements
      • Be careful about chaining conditions
      • Be careful of chaining ternary operators
      • Write Code Knowing You Will be Blamed
      • Hacks
      • Bad Practices
      • Logs
      • Time
      • Other rules
    • Engineering Code
    • Engineering Data
    • Pipelines
    • Configuration Files
    • Site Reliability Engineering (SRE)
    • Best Engineers
  • Engineering Managementchevron-right
  • Why GitBook?
  • Getting into Techchevron-right
  • Personal Goals
  • Daily Drivers
  • Contacting Me
  • Notes
    • JavaScriptchevron-right
    • Node.jschevron-right
    • Technical Due Diligence
    • Archivechevron-right
  • More on Notionarrow-up-right-from-square
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. Engineering Codechevron-right
  2. Writing Code

Consistency

Consistency helps to aid the reading and writing process.

To aid with consistency:

  • precommit hooks

  • Use style guides

hashtag
PreCommit Hooks

  • https://githooks.com/arrow-up-right

Tools:

  • https://pre-commit.com/arrow-up-right

  • JavaScript

    • Husky

      • https://github.com/typicode/huskyarrow-up-right

      • https://www.npmjs.com/package/huskyarrow-up-right

  • Ruby

    • Overcommit

      • https://github.com/sds/overcommitarrow-up-right

hashtag
Style Guides

hashtag
JavaScript

Linter

  • https://eslint.org/arrow-up-right

    • https://eslint.org/docs/rules/arrow-up-right

  • https://prettier.io/arrow-up-right

Style Guide

  • https://github.com/airbnb/javascriptarrow-up-right

PreviousWriting Codechevron-leftNextWriting for a code base of 1,000,000+ Lineschevron-right

Last updated 5 years ago

Was this helpful?

  • PreCommit Hooks
  • Style Guides

Was this helpful?