Shared config for code formatting
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
Add this to your package.json
"prettier": "prettier-config",
"devDependencies": {
"prettier-config": "git+ssh://[email protected]/te-papa/prettier-config.git"
}
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