Add prettier, formatted files. Use bytes/hex conversions from noble.

This commit is contained in:
Jay
2025-10-24 12:58:28 -04:00
parent b23e56b2e6
commit 268f411633
16 changed files with 299 additions and 94 deletions

View File

@@ -15,6 +15,8 @@
],
"scripts": {
"build": "tsc",
"lint": "tsc --noEmit",
"format": "prettier -w src",
"test": "vitest",
"test:run": "vitest run"
},
@@ -23,9 +25,28 @@
"@noble/secp256k1": "^3.0.0"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/node": "^24.9.1",
"prettier": "^3.5.3",
"typescript": "^5.9.3",
"vite": "^7.1.12",
"vitest": "^4.0.2"
},
"prettier": {
"importOrder": [
"^react$",
"^react-dom(.*)$",
"^react(.*)$",
"^@(?!(/))(.*)$",
"^(?!@|[.])(.*)$",
"^@(/)(.*)$",
"^[./]"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"plugins": [
"@trivago/prettier-plugin-sort-imports"
]
}
}