Skip to content

Commit

Permalink
Merge pull request #4 from Ariesly/main
Browse files Browse the repository at this point in the history
feat: add commit hooks with husky
  • Loading branch information
Nigh committed Apr 11, 2024
2 parents 06c0cb3 + 567ee89 commit ba65fd8
Show file tree
Hide file tree
Showing 8 changed files with 747 additions and 4,354 deletions.
1 change: 1 addition & 0 deletions .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.DS_Store
node_modules
logs
*.log
/build
/.svelte-kit
/package
Expand Down
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn commitlint ${1}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn pre-commit
18 changes: 16 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
"lint": "eslint .",
"prepare": "husky",
"pre-commit": "lint-staged",
"commitlint": "commitlint --edit"
},
"lint-staged": {
"*": [
"prettier --write"
],
"*.{svelte,js,css,html}": [
"eslint --fix"
]
},
"devDependencies": {
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
Expand All @@ -20,6 +32,8 @@
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"postcss": "^8.4.38",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
Expand Down
1 change: 1 addition & 0 deletions src/routes/home.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
/* eslint no-unused-vars: off */
import { state } from './store.js';
import LogoOverclock from './logo_overclock.svelte';
import LogoNormal from './logo_normal.svelte';
Expand Down
4,339 changes: 0 additions & 4,339 deletions yarn-error.log

This file was deleted.

Loading

0 comments on commit ba65fd8

Please sign in to comment.