diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..034fd378 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,8 @@ +.github +.husky +.vscode +dist +lib +node_modules +scripts +package-lock.json \ No newline at end of file diff --git a/.vscode/extension.json b/.vscode/extension.json new file mode 100644 index 00000000..9edd4f1d --- /dev/null +++ b/.vscode/extension.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["esbenp.prettier-vscode"] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index faa9492c..2c21f322 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -20,6 +20,7 @@ // Standardize on the Prettier formatter "editor.defaultFormatter": "esbenp.prettier-vscode", // Enforce prettier on save + "editor.formatOnSave": true, "npm.packageManager": "npm", "eslint.packageManager": "npm" } diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 00000000..1bcc440b --- /dev/null +++ b/prettier.config.js @@ -0,0 +1 @@ +module.exports = { printWidth: 150 };