1.0.7 • Published 4 years ago

@common-web/prettier v1.0.7

Weekly downloads
6
License
MIT
Repository
-
Last release
4 years ago

@common-web/prettier

Automatically enforce some basic coding practice in your code base (ex spacing, quotes, tab width etc)

Getting started

Install the pkg:

yarn:

yarn add prettier @common-web/prettier -D

npm:

npm install prettier @common-web/prettier --save-dev

in your repo create prettier.config.js then added the following:

const BasePrettierConfig = require('@common-web/prettier');

module.exports = BasePrettierConfig;

Running Prettier

Add the following to your "scripts" in your package.json

{
    ...,

    "scripts": {
        "prettier --write -l \"src/**/*.ts\
    }
}

Note: Feel free change the 'src' and file pattern matching to suit your needs

yarn run prettier

or

npm run prettier

Examples

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago