3.3.3 • Published 1 year ago

@nivalis/prettier-config v3.3.3

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

@nivalis/prettier-config

Installation

npm i -D @nivalis/prettier-config prettier

Setup

  1. Add the prettier key to your package.json
diff --git a/package.json b/package.json
index 2ecef3d..260838f 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,7 @@
   "keywords": [
     "prettier"
   ],
+  "prettier": "@nivalis/prettier-config",
   "license": "MIT",
   "main": "index.js"
  1. Add the following to scripts in package.json
"prettier": "prettier '**/*.{js,ts,json,css,scss,html,hbs,md}' --write"
  1. Install the relevant Editor Addon/Plugin and enable "Prettier on Save".

Check out the prettier documentation for more info on sharing configurations.

With Tailwindcss

Create the following file .prettierrc.js

module.exports = {
	...require('@nivalis/prettier-config'),
	plugins: [require.resolve('prettier-plugin-tailwindcss')],
};

Check out the prettier documentation for more info on sharing configurations.

3.3.1

1 year ago

3.3.3

1 year ago

3.3.2

1 year ago

3.2.6-beta.0

1 year ago

3.2.5

1 year ago

3.2.4

1 year ago

3.1.1

2 years ago

3.1.0

2 years ago

1.0.0

2 years ago