1.8.2 • Published 2 years ago

@brlt/prettier v1.8.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

 @brlt/prettier

An opinionated Prettier configuration to scaffold my projects.

Getting Started

Install to devDependencies

pnpm i -D @brlt/prettier
yarn add -D @brlt/prettier
npm i -D @brlt/prettier

Add to package.json

diff --git a/package.json b/package.json

   "main": "index.js",
   "types": "index.d.ts",
+  "prettier": "@brlt/prettier",
   "devDependencies": {

Alternatively, use .prettierrc

From the Prettier Docs:

If you don’t want to use package.json, you can use any of the supported extensions to export a string, e.g. .prettierrc.json:

"@brlt/prettier"

Note: This method does not offer a way to extend the configuration to override certain properties from the shared config. To do that, import the file in a .prettierrc.js file and export the modifications, e.g:

module.exports = {
	...require('@brlt/prettier'),
	semi: false,
};

See the Prettier Docs for more info on shared config ›


MIT © Nicholas Berlette · inspired by @github/prettier-config

1.8.2

2 years ago

1.8.0

2 years ago

1.6.4

2 years ago

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago