diff options
author | marv <rotrobmin@gmail.com> | 2024-02-02 20:44:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 04:44:14 +0000 |
commit | 97c5c741137ecc363630c58797901f1eb829c1bb (patch) | |
tree | 050bd42fc633d728d1687d51db93714efabbfe81 /package.json | |
parent | e598a97f27747bef0f850dcce2ad7bdeab89e0cd (diff) |
Add Prettier Formatting for Markdown Files and Pre-Commit Hook (#543)
* Install prettier, add prettierignore
* Add precommit hook for md
* Prettier format md files
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/package.json b/package.json index 094fb05c..0f8e82cd 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "test-code-write": "vitest run --config test/data/vitest.write.config.json", "test-build": "node ./dev/bin/build.js --dryRun --all", "license-report": "license-report --output=html --only=prod --fields=name --fields=installedVersion --fields=licenseType --fields=link --html.cssFile=dev/data/legal-npm.css > ext/legal-npm.html", - "license-report-markdown": "license-report --output=markdown --only=prod --fields=name --fields=installedVersion --fields=licenseType --fields=link" + "license-report-markdown": "license-report --output=markdown --only=prod --fields=name --fields=installedVersion --fields=licenseType --fields=link", + "prepare": "husky install" }, "repository": { "type": "git", @@ -75,9 +76,12 @@ "eslint-plugin-vitest": "^0.3.20", "fake-indexeddb": "^5.0.2", "html-validate": "^8.8.0", + "husky": "^9.0.10", "jsdom": "^24.0.0", "jszip": "^3.10.1", "license-report": "^6.5.0", + "lint-staged": "^15.2.1", + "prettier": "^3.2.4", "stylelint": "^16.1.0", "stylelint-config-recommended": "^14.0.0", "ts-json-schema-generator": "^1.5.0", @@ -91,5 +95,8 @@ "handlebars": "^4.7.8", "parse5": "^7.1.2", "wanakana": "^5.3.1" + }, + "lint-staged": { + "*.md": "prettier --write" } } |