Skip to content

te-papa/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prettier-config

Shared config for code formatting

Usage

With yarn

In package.json add the line:

"prettier": "prettier-config",

and at your project repo root in shell

yarn add -D git+ssh://[email protected]/te-papa/prettier-config.git

Alternatively

Add this to your package.json

"prettier": "prettier-config",

"devDependencies": {
  "prettier-config": "git+ssh://[email protected]/te-papa/prettier-config.git"

}

Editor Config

This is sourced from https://github.com/te-papa/init-config

Add this to your package.json

"scripts": {
    "editorconfig": "cp node_modules/prettier-config/.editorconfig ."
},

Then run:

yarn editorconfig

before commencing development

About

Shared config for code formatting

Resources

Stars

Watchers

Forks

Packages

No packages published