Base prettier rules used by the AdonisJS team for packages and the applications.
Install the package from the npm registry.
npm i -D @adonisjs/prettier-config
# Make sure also to install the following packages
npm i -D prettier
After installation, you can copy/paste the following block of code within the package.json
file.
{
"prettier": "@adonisjs/prettier-config"
}
Our base config also installs and configures the prettier-plugin-edgejs package to format Edge templates using Prettier.
Built with ❤︎ by Julien Ripouteau and Harminder Virk