feat: add universal formatting configuration (black, prettier, editorconfig)

This commit is contained in:
2026-06-24 06:36:35 -05:00
parent f6efc209d7
commit ef9a3cee2e
5 changed files with 88 additions and 0 deletions

23
package.json Normal file
View File

@@ -0,0 +1,23 @@
{
"name": "kx-bridge",
"version": "0.9.27",
"description": "Moonraker-compatible bridge for Anycubic Kobra X",
"type": "module",
"devDependencies": {
"prettier": "^3.0.0"
},
"scripts": {
"format:js": "prettier --write 'web/**/*.js' '*.js'",
"format:json": "prettier --write '*.json' 'web/**/*.json'",
"format:web": "prettier --write 'web/**/*.{js,json,html,css,yml,yaml,md}'",
"format": "npm run format:web"
},
"prettier": {
"semi": true,
"singleQuote": false,
"trailingComma": "es5",
"printWidth": 100,
"tabWidth": 2,
"useTabs": false
}
}