Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harker Robotics apps use prettier to enforce a standardized code style across codebases. The @harker-robo/prettier-config NPM package defines the formatting rules.

Installation

Install prettier and the configuration package.

npm i --save-dev prettier @harker-robo/prettier-config

Usage

  1. Add the prettier key to package.json
// package.json
{
    // ...
    "prettier": "@harker-robo/prettier-config"
}
  1. Add the formatting script to package.json.
// package.json
{
    // ...
    "scripts": {
        // ...
        "format": "npx prettier . -w"
    }
}
  1. Run the formatter.
npm run format

Links

About

Code style definitions for Harker Robotics apps.

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Used by

Contributors