npm i -D @nivalis/prettier-config prettier
- Add the
prettier
key to yourpackage.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"
- Add the following to
scripts
inpackage.json
"prettier": "prettier '**/*.{js,ts,json,css,scss,html,hbs,md}' --write"
- Install the relevant Editor Addon/Plugin and enable "Prettier on Save".
Check out the prettier
documentation for more info on sharing configurations.
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.