aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-26 20:07:06 -0400
committerXe Iaso <me@xeiaso.net>2025-04-26 20:07:06 -0400
commit62665656ffc8c20b7913b64dd14f4739bdcf29e7 (patch)
tree52893728becf4b7cb7b6b21f36d3a030b33ab376 /package.json
parent0a566abb1557f1a06723564b080061c06afd5de9 (diff)
downloadx-62665656ffc8c20b7913b64dd14f4739bdcf29e7.tar.xz
x-62665656ffc8c20b7913b64dd14f4739bdcf29e7.zip
chore: reformat the world, set up autoformat on commit
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'package.json')
-rw-r--r--package.json21
1 files changed, 19 insertions, 2 deletions
diff --git a/package.json b/package.json
index 897eba3..59aabd7 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,9 @@
"devDependencies": {
"@commitlint/cli": "^19.8.0",
"@commitlint/config-conventional": "^19.8.0",
- "husky": "^9.1.7"
+ "husky": "^9.1.7",
+ "lint-staged": "^15.5.1",
+ "prettier": "^3.5.3"
},
"commitlint": {
"extends": [
@@ -41,5 +43,20 @@
"always"
]
}
+ },
+ "lint-staged": {
+ "**/*.{js,ts,html,json,css,scss,md,mdx}": [
+ "prettier -w"
+ ],
+ "**/*.{go}": [
+ "go tool goimports -w"
+ ]
+ },
+ "prettier": {
+ "singleQuote": false,
+ "tabWidth": 2,
+ "semi": true,
+ "trailingComma": "all",
+ "printWidth": 80
}
-} \ No newline at end of file
+}