chore: enforce prettier configuration

In order to avoid reformatting of the code this PR add a prettier configuration as well as scripts to automatically format apply the rules
This commit is contained in:
Luc Patiny 2025-11-17 06:10:08 +01:00
parent f6fea65063
commit 3f899c8445
19 changed files with 3477 additions and 3474 deletions

View file

@ -5,6 +5,8 @@
"main": "src/index.js",
"type": "module",
"scripts": {
"prettier": "prettier --check src",
"prettier-write": "prettier --write src",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Liam Cottle <liam@liamcottle.com>",
@ -12,5 +14,8 @@
"dependencies": {
"@noble/curves": "^1.8.1",
"serialport": "^13.0.0"
},
"devDependencies": {
"prettier": "^3.6.2"
}
}