2.0.6 • Published 5 years ago

prettier-setup v2.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

:nail_care: Prettier Setup

styled with prettier Maintainability

Set up Prettier for your JavaScript and TypeScript projects with one command.

:package: Install with NPM

This will install the NPM module globally.

npm i -g prettier-setup

That´s it!

:clipboard: Usage

Open a terminal in the root directory of your project. Type:

prettier-setup

.. and press return.

Choose a code language that you want to use and hit return (use arrow keys to select).

The setup will now install Prettier with ESLint support.

The setup will automatically create NPM scripts for you.
You can now use:

  • npm run format This will format every supported file.
  • npm run formatjs This will only format *.js files.

If you selected TypeScript you can also use:

  • npm run formatts This will only format *.ts files.
  • npm run compile This will run the TypeScriptCompiler (tsc) and format the

:clipboard: Usage (JavaScript)

Open a terminal in the root directory of your project. Type:

prettier-setup -js

or

prettier-setup --javascript

.. and press return.
The setup will now install Prettier with ESLint support.

The setup will automatically create NPM scripts for you.
You can now use:

  • npm run format This will format every supported file.
  • npm run formatjs This will only format *.js files.

:clipboard: Usage (JavaScript & TypeScript)

Open a terminal in the root directory of your project. Type:

prettier-setup -ts

or

prettier-setup --typescript

.. and press return.
The setup will now install Prettier with ESLint and TSLint support.

The setup will automatically create NPM scripts for you.
You can now use:

  • npm run format This will format every supported file.
  • npm run formatjs This will only format *.js files.
  • npm run formatts This will only format *.ts files.
  • npm run compile This will run the TypeScriptCompiler (tsc) and format the generated *.js files afterwards.
2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago