🪃
Engineering Playbook
  • Engineering Playbook
  • Agile Development
    • Kanban from the start
    • Daily Stand-up
    • Collaboration
      • Mobile Designer X Mobile Developer
    • Backlog Management
      • Backlog Refinement
    • Card Management
      • Epics
      • User story
        • Collaboration experience with acceptance criteria
        • Proper acceptance criteria
      • Task
      • Bug
      • Hotfix
      • Sub-task
      • Defect
      • Columns
      • Card organization
      • Column Limit
      • Board Templates
    • Pull System Task Assignment
    • Retrospectives
    • Team Agreement
      • Working Agreement
      • Definition of Ready
      • Definition of Done
    • Agile Metrics
  • Github
    • Source Control
    • Merge Strategies
    • Versioning
    • Code Reviews
      • Author's Checklist
      • Reviewer's Checklist
  • Documentation
    • GraphQL as an API Doc
  • DevOps
    • Continuous Integration
Powered by GitBook
On this page
  • 🥅 Goals
  • Pull Request
  • Typescript Checklist
  • ESLint
  • Setting up Prettier
  • Pre-commit hooks
  • Auto formatting with VS Code
  • Slack Bot Integration
  • Recipes
  • Gherkin
  • Resources

Was this helpful?

  1. Github

Code Reviews

Reviewing of PRs

🥅 Goals

  • Improve code quality

  • Grow by learning

  • Develop shared understanding

Pull Request

Changes should go through Pull Request (PR) for code review.

Templates

## Description

Add description

## References

- [JIRA card](https://identifi.atlassian.net/browse/JAM-1)

## Platform

- [ ] Backend
- [ ] Web
- [ ] Mobile
- [ ] DevOps
- [ ] QA Automation

## Types of changes

- [ ] Bug fix
- [ ] Non-breaking change
- [ ] Breaking change

## Affected Components

- [ ] Admin
- [ ] API
- [ ] Integration
- [ ] CI/CD
- [ ] Terraform
- [ ] Packer
- [ ] Others

Typescript Checklist

ESLint

{
  "parser": "@typescript-eslint/parser",
  "plugins": ["@typescript-eslint", "import"],
  "extends": [
    "airbnb-base",
    "plugin:@typescript-eslint/recommended",
    "plugin:import/typescript"
  ],
  "settings": {
    "import/resolver": {
      "typescript": {}
    }
  },
  "env": {
    "node": true,
    "mocha": true
  },
  "rules": {
    "max-len": ["error", 128],
    "import/extensions": "off",
    "func-names": "off",
    "semi": "off",
    "no-shadow": "off",
    "@typescript-eslint/no-shadow": ["error"],
    "import/no-extraneous-dependencies": "off",
    "@typescript-eslint/semi": ["error"],
    "@typescript-eslint/explicit-module-boundary-types": "off",
    "import/prefer-default-export": "off",
    "@typescript-eslint/ban-types": "off",
    "class-methods-use-this": "off",
    "object-curly-spacing": "off",
    "@typescript-eslint/object-curly-spacing": ["error", "always"],
  }

}

Setting up Prettier

{
  "singleQuote": true,
  "trailingComma": "all",
  "tabWidth": 2,
  "semi": true
}

Pre-commit hooks

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# your command here

Auto formatting with VS Code

{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
}

Slack Bot Integration

There are bots to help signal for code reviews.

Recipes

Gherkin

Each Scenario should be independent

It could run alone and should not rely upon other scenarios to run correctly.

Resources

PreviousVersioningNextAuthor's Checklist

Last updated 3 years ago

Was this helpful?

We're using

Please see,

husky
HOV DevOps Bot
High Output Engineering -- Code Review