Skip to content

Commit

Permalink
chore: Remove husky and lint-staged (#522)
Browse files Browse the repository at this point in the history
* Rely on github action to lint rather than git hook

* Run format

* Add .cjs formatting

* Simplify prettier command

* Format

* Update prettier script

* Add to automated PR

* Revert "Add to automated PR"

This reverts commit 663319a.
  • Loading branch information
lachlancollins authored Dec 18, 2023
1 parent 431879e commit e66d169
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 242 deletions.
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"test": "vitest",
"lint": "prettier --check ./**/*.{js,cjs,ts,css,md,svx,svelte,html,json} && eslint . && node scripts/validateData.js",
"format": "prettier --write ./**/*.{js,cjs,ts,css,md,svx,svelte,html,json}",
"prepare": "husky install"
"format": "prettier --write ./**/*.{js,cjs,ts,css,md,svx,svelte,html,json}"
},
"devDependencies": {
"@actions/core": "^1.10.1",
Expand All @@ -33,9 +32,7 @@
"eslint-plugin-svelte": "^2.35.1",
"graphql-request": "^3.7.0",
"highlight.js": "^11.6.0",
"husky": "^7.0.4",
"itemsjs": "^2.1.24",
"lint-staged": "^13.3.0",
"mdsvex": "^0.11.0",
"package-name-regex": "^3.1.1",
"prettier": "^3.1.1",
Expand All @@ -50,8 +47,5 @@
"vite": "^5.0.10",
"vitest": "^1.0.4",
"zod": "^3.22.4"
},
"lint-staged": {
"*.{js,cjs,ts,css,md,svx,svelte,html,json}": "prettier --write"
}
}
Loading

0 comments on commit e66d169

Please sign in to comment.