https://github.com/qnton/prettier-config
My easy-to-use Prettier configuration.
https://github.com/qnton/prettier-config
prettier prettier-config
Last synced: 3 months ago
JSON representation
My easy-to-use Prettier configuration.
- Host: GitHub
- URL: https://github.com/qnton/prettier-config
- Owner: qnton
- License: mit
- Created: 2023-01-25T07:23:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T09:46:08.000Z (over 2 years ago)
- Last Synced: 2024-04-25T01:20:27.502Z (over 1 year ago)
- Topics: prettier, prettier-config
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prettier Configuration
Prettier is an opinionated code formatter that helps keep your code consistent and easy to read. This repository contains the configuration for Prettier that I use for my projects.
## Installation
To use this configuration, you will need to have Prettier installed in your project. You can install it by running the following command:
```shell
npm install --save-dev prettier
```Then you have to install my config with the following command:
```shell
npm install --save-dev qnton-prettier-config
```## Usage
To use this configuration, add the following key to your `package.json` file:
```json
{
"prettier": "qnton-prettier-config"
}
```## Customization
If you want to customize the configuration, you can do so by creating a `.prettierrc.js` file in the root of your project and adding your own settings. But first you have to remove the option in the `package.json`
```js
const baseConfig = require("qnton-prettier-config");module.exports = {
...baseConfig,
//Add your config here
};
```## Conclusion
With this configuration, you can ensure that your code is consistently formatted and easy to read. If you have any questions or issues, please feel free to open an issue in this repository.