1.8.2 • Published 2 years ago
@brlt/prettier v1.8.2
@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