diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-26 20:07:06 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-26 20:07:06 -0400 |
| commit | 62665656ffc8c20b7913b64dd14f4739bdcf29e7 (patch) | |
| tree | 52893728becf4b7cb7b6b21f36d3a030b33ab376 /package.json | |
| parent | 0a566abb1557f1a06723564b080061c06afd5de9 (diff) | |
| download | x-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.json | 21 |
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 +} |
