2.0.0 • Published 5 years ago

@privacycloud/prettierrc v2.0.0

Weekly downloads
9
License
MIT
Repository
-
Last release
5 years ago

PrivacyCloud shared Prettier configuration

How to use it?

First, you need to install all the required dependencies:

$: npm i --save-dev prettier @privacycloud/prettierrc

Setup your local Prettier configuration. Create a .prettierrc.js file in the root folder and add:

module.exports = require('@privacycloud/prettierrc');

Once every is installed and configured, you can add the Prettier extension to your editor.

Visual Studio Code

Prettier can be installed by using the extensions sidebar. Search for Prettier-Code formatter.

If you want to format your code every time you save a file, add "editor.formatOnSave": true to your vscode settings file.

Contributing

In order to publish any update from this package to the npm registry, please follow the following instructions about publishing packages to npm and working with scoped packages on npm.

TL;DR

$: npm adduser # "npm login" if you already have an account
$: npm publish --access=public

NOTE: Your user must be a member of the @privacycloud organization on npm.