prettier-setup v2.0.6
:nail_care: Prettier Setup
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-setupThat´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 formatThis will format every supported file.npm run formatjsThis will only format *.js files.
If you selected TypeScript you can also use:
npm run formattsThis will only format *.ts files.npm run compileThis will run the TypeScriptCompiler (tsc) and format the
:clipboard: Usage (JavaScript)
Open a terminal in the root directory of your project. Type:
prettier-setup -jsor
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 formatThis will format every supported file.npm run formatjsThis will only format *.js files.
:clipboard: Usage (JavaScript & TypeScript)
Open a terminal in the root directory of your project. Type:
prettier-setup -tsor
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 formatThis will format every supported file.npm run formatjsThis will only format *.js files.npm run formattsThis will only format *.ts files.npm run compileThis will run the TypeScriptCompiler (tsc) and format the generated *.js files afterwards.
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago