Skip to content

Commit

Permalink
chore: introduce husky and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Jul 23, 2024
1 parent 9c6ad24 commit bbf8d58
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 2 deletions.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm run lint-staged
19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"private": true,
"packageManager": "pnpm@9.6.0",
"description": "Rotki's user guide and facing documentation",
"keywords": ["static", "documentation", "rotki"],
"keywords": [
"static",
"documentation",
"rotki"
],
"license": "AGPL-3.0",
"homepage": "https://docs.rotki.com",
"bugs": {
Expand All @@ -17,7 +21,9 @@
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview",
"lint": "eslint ."
"lint": "eslint .",
"lint-staged": "lint-staged",
"prepare": "husky"
},
"dependencies": {
"@vitejs/plugin-vue": "5.0.5",
Expand All @@ -31,9 +37,18 @@
"@vue/compiler-sfc": "3.4.33",
"@vue/runtime-dom": "3.4.33",
"eslint": "9.7.0",
"husky": "9.1.1",
"lint-staged": "15.2.7",
"papaparse": "5.4.1",
"url": "0.11.3",
"vitepress": "1.3.1",
"vitepress-plugin-tabs": "0.5.0"
},
"engines": {
"node": ">=20 <21",
"pnpm": ">=9 <10"
},
"lint-staged": {
"*.{js,ts,vue,json,yml,md}": "eslint"
}
}
Loading

0 comments on commit bbf8d58

Please sign in to comment.