Shared Prettier config to be used across applicable Little World repos.
Prettier has language support for JavaScript, JSX, Angular, Vue, Flow, TypeScript, CSS, HTML, JSON, GraphQL, Markdown and YAML.
To update, add or remove options, edit the index.json
file.
To use this shared prettier config in a repository, add the prettier property to your package.json
:
{
"name": "little-world-repo",
// ...
"prettier": "little-world/little-world-prettier-config"
// ...
}
Whenever the share config is updated, the version must be bumped and that new version must be published via npm.
Bump the version number by editing the version
in package.json
To publish run the following command in your terminal when at the root of the cloned repo:
npm publish