3.85 GB
70,867 files
Updated 17 days ago
Name
Size
.prettierrc.js256 Bytes
xet
README.md1.26 kB
xet
package.json663 Bytes
xet
README.md

Prettier Basic

This is a simple prettier configuration that helps match the best coding standards. And by the best coding standards, I of course mean my own. I am open to suggestions and pull requests. This standard is mostly based on airbnb's standard, but with some modifications. To install

npm install --save-dev prettier prettier-basic
# or
yarn add --dev prettier prettier-basic

Then add the following to your package.json

{
  "prettier": "prettier-basic"
}

Or for your .prettierrc file

"prettier-basic"

Or to extend and change to inferior standards, you can put this in your .prettierrc.js file

module.exports = {
  ...require("prettier-basic"),
  semi: false,
};

Optional Configuration

I like to add an auto format script to my package.json as well

{
  "scripts": {
    "format": "prettier --write \"**/*.{js,jsx,ts,tsx,css,scss,md}\""
  }
}

then it can be run with npm run format or yarn format

Info

Refer to the prettier options for more information on the options.

Refer to the prettier configuration for more information on configuration.

Total size
3.85 GB
Files
70,867
Last updated
Nov 3
Pre-warmed CDN
US EU US EU

Contributors