Skip to content

Instantly share code, notes, and snippets.

@g-harel
Last active May 22, 2018 20:05
Show Gist options
  • Save g-harel/4ab35ff314dc9679c5221c803b54d2fd to your computer and use it in GitHub Desktop.
Save g-harel/4ab35ff314dc9679c5221c803b54d2fd to your computer and use it in GitHub Desktop.
- check indentation/linting format
- check var types
- positive boolean names
- logically separate functionality into files
- check for existing components
- all data formatting on server
- no side-effects
- use intermediary values for magic lines
- object styles in jsx
- "./../" === "../"
- no need to use css prefix for custom styles
- run tests before doing pr
- avoid inline styles
- always use translated strings
- check if var exists
- exclude in search **/*{test,mock,snapshot,coverage,transpiled,cache}*/**
- prefer strict versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment