https://github.com/adonisjs/prettier-config
Prettier config preset for AdonisJS packages and applications
https://github.com/adonisjs/prettier-config
Last synced: over 1 year ago
JSON representation
Prettier config preset for AdonisJS packages and applications
- Host: GitHub
- URL: https://github.com/adonisjs/prettier-config
- Owner: adonisjs
- License: mit
- Created: 2024-08-31T12:38:39.000Z (almost 2 years ago)
- Default Branch: 1.x
- Last Pushed: 2024-08-31T12:41:23.000Z (almost 2 years ago)
- Last Synced: 2025-02-08T18:16:34.790Z (over 1 year ago)
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# @adonisjs/prettier-config
Base Prettier configuration
Base prettier rules used by the AdonisJS team for packages and the applications.
[![npm-image]][npm-url] [![license-image]][license-url]
## Installation
Install the package from the npm registry.
```sh
npm i -D @adonisjs/prettier-config
# Make sure also to install the following packages
npm i -D prettier
```
## Usage
After installation, you can copy/paste the following block of code within the `package.json` file.
```json
{
"prettier": "@adonisjs/prettier-config"
}
```
Our base config also installs and configures the [prettier-plugin-edgejs](https://github.com/sajansharmanz/prettier-plugin-edgejs) package to format Edge templates using Prettier.
[npm-image]: https://img.shields.io/npm/v/@adonisjs/prettier-config/latest.svg?style=for-the-badge&logo=npm
[npm-url]: https://www.npmjs.com/package/@adonisjs/prettier-config/v/latest 'npm'
[license-url]: LICENSE.md
[license-image]: https://img.shields.io/github/license/adonisjs/prettier-config?style=for-the-badge