From 88d7fdb74d1e556a45bdc78088ac35b3ed36ecea Mon Sep 17 00:00:00 2001 From: Niki Wix Skaarup Date: Tue, 1 Apr 2025 00:43:30 +0200 Subject: [PATCH] update deps and add prettier config --- .prettierignore | 13 +++++++++++++ .prettierrc | 21 +++++++++++++++++++++ package.json | 3 ++- src/index.html | 2 +- 4 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..3897265 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,13 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example + +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..3db8b8b --- /dev/null +++ b/.prettierrc @@ -0,0 +1,21 @@ +{ + "useTabs": false, + "singleQuote": true, + "trailingComma": "none", + "printWidth": 100, + "plugins": [ + "prettier-plugin-svelte", + "prettier-plugin-tailwindcss" + ], + "pluginSearchDirs": [ + "." + ], + "overrides": [ + { + "files": "*.svelte", + "options": { + "parser": "svelte" + } + } + ] +} diff --git a/package.json b/package.json index 03a7342..8de8777 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,11 @@ "eslint-config-greasemonkey": "^1.0.1", "eslint-config-prettier": "^10.1.1", "prettier": "^4.0.0-alpha.12", + "prettier-plugin-svelte": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.11" }, "dependencies": { - "@tailwindcss/cli": "4.0.14", + "@tailwindcss/cli": "4.0.17", "bun-plugin-svelte": "^0.0.6", "bun-plugin-tailwind": "^0.0.15", "tailwindcss": "^4.0.17" diff --git a/src/index.html b/src/index.html index c44e8cf..857b6db 100644 --- a/src/index.html +++ b/src/index.html @@ -1,7 +1,7 @@ - Niki Wix Skaarup + Userscripts - skaarup.dev