https://github.com/graham42/prettier-config
Automated setup of Prettier in a new project.
https://github.com/graham42/prettier-config
prettier project-setup
Last synced: 15 days ago
JSON representation
Automated setup of Prettier in a new project.
- Host: GitHub
- URL: https://github.com/graham42/prettier-config
- Owner: Graham42
- License: mit
- Created: 2018-06-09T19:52:40.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-01-08T00:26:33.000Z (about 3 years ago)
- Last Synced: 2025-10-17T00:56:17.959Z (3 months ago)
- Topics: prettier, project-setup
- Language: JavaScript
- Homepage:
- Size: 237 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :art: Automated project setup - [Prettier][]
This package provides automated setup of [Prettier][] in a new project.
[prettier]: https://prettier.io/
## Usage
```sh
npx @graham42/prettier-config@latest
```
## Features
This package will set up:
- npm scripts `check:format` and `fix:format` in package.json
- a `.prettierrc.js` file with config for better git diffs
- a `.gitignore` file if one doesn't exist using `npx gitignore@latest node`
- the `prettier` package
- [VS Code](https://code.visualstudio.com/) project settings to format on save
using Prettier
- some VS Code whitespace settings for better git diffs
- the VS Code Prettier extension as a
[recommended workspace extension](https://code.visualstudio.com/docs/editor/extension-marketplace#_workspace-recommended-extensions)
to help new contributors to your project get up and running