0.2.2 • Published 1 year ago

@vikiboss/prettier-config v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@vikiboss/prettier-config

Viki's personal Prettier config

Features

module.exports = {
  htmlWhitespaceSensitivity: 'strict',
  jsxSingleQuote: true,
  printWidth: 100,
  semi: false,
  singleQuote: true,
  trailingComma: 'none'
}

See full prettier default config fields, head to defaults.json.

Usage

Install

# npm
npm i -D @vikiboss/prettier-config

# yarn
yarn add -D @vikiboss/prettier-config

# pnpm
pnpm add -D @vikiboss/prettier-config

Edit your config

you can add prettier field to your package.json:

{
  "name": "awesome-project",
  // ...
  "prettier": "@vikiboss/prettier-config"
  // ...
}

or you can also add a .prettierrc file that contains following strings:

"@vikiboss/prettier-config"

or you may want to override some rules based on it:

// .prettierrc.js
module.exports = {
  ...require('@vikiboss/prettier-config'),
  semi: true,
  singleQuote: false,
  arrowParens: 'always'
}

@vikiboss/prettier-config/fun

You will like it, maybe. 🤣

Just require config from the fun path and try it multiple times to see what will happen.

// .prettierrc.js
module.exports = require('@vikiboss/prettier-config/fun')

License

MIT License © 2022-PRESENT Viki

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago