From b0d2294f2da834459b384c2dc05cbbf1093aac5c Mon Sep 17 00:00:00 2001 From: Leah Lundqvist Date: Sat, 23 Nov 2024 05:44:22 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Update=20ts=20(#chore/update-ts)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Updated TypeScript version and added Prettier configuration. Highlights: • Updated TypeScript version in `package.json` to `^5.7.2`. • Added `prettier.config.js` with TailwindCSS and package.json plugins. • Set editor settings to disable indentation detection and use tabs. Read more: https://pierre.co/0x57/sdk/chore/update-ts --- .vscode/settings.json | 3 +++ package-lock.json | 11 ++++++----- packages/eslint-config/package.json | 2 +- prettier.config.js | 6 ++++++ 4 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 prettier.config.js diff --git a/.vscode/settings.json b/.vscode/settings.json index 401ec90..8d6abd8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,6 +12,9 @@ "files.eol": "\n", "files.trimFinalNewlines": true, + "editor.detectIndentation": false, + "editor.insertSpaces": false, + "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, diff --git a/package-lock.json b/package-lock.json index 53a4ed9..a7ff113 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9872,10 +9872,11 @@ } }, "node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "devOptional": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -10659,7 +10660,7 @@ "eslint-config-xo-typescript": "^3.0.0", "eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-react-hooks": "^4.6.0", - "typescript": "^5.3.3" + "typescript": "^5.7.2" } }, "packages/interfaces": { @@ -10694,7 +10695,7 @@ }, "packages/passkey-react": { "name": "@0x57/passkey-react", - "version": "0.0.8", + "version": "0.0.9", "dependencies": { "@0x57/interfaces": "*", "@0x57/passkey": "*" diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 82eac54..e3b60ae 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -18,6 +18,6 @@ "eslint-config-xo-typescript": "^3.0.0", "eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-react-hooks": "^4.6.0", - "typescript": "^5.3.3" + "typescript": "^5.7.2" } } diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 0000000..ead9a19 --- /dev/null +++ b/prettier.config.js @@ -0,0 +1,6 @@ +/** @type {import("prettier").Config} */ +module.exports = { + quoteProps: "consistent", + useTabs: true, + plugins: ["prettier-plugin-tailwindcss", "prettier-plugin-packagejson"], +};