Skip to content

Commit

Permalink
Remove husky
Browse files Browse the repository at this point in the history
  • Loading branch information
firefoxic committed Aug 19, 2024
1 parent e80c9ca commit 8a1b9df
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 133 deletions.
5 changes: 2 additions & 3 deletions .husky/pre-commit → .git-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
git stash -ku

trap "git stash pop" EXIT

npm run lint
pnpm test
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { default as firefoxicEslintConfig, globals } from "@firefoxic/eslint-config"

/** @type {import('eslint').Linter.Config[]} */
export default [
{
languageOptions: {
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,21 @@
"engines": {
"node": "^18.12 || >=20.9"
},
"packageManager": "pnpm@9.1.0",
"packageManager": "pnpm@9.7.1",
"scripts": {
"prepare": "husky",
"prepare": "git config core.hooksPath .git-hooks || echo 'Not in a git repo'",
"lint": "eslint",
"pretest": "pnpm lint",
"test": "node --test",
"preversion": "pnpm test",
"version": "update-changelog && git add CHANGELOG.md",
"version": "update-changelog",
"postversion": "pnpm publish --access=public",
"postpublish": "git push --follow-tags"
},
"devDependencies": {
"@firefoxic/eslint-config": "^1.0.0",
"@firefoxic/update-changelog": "^0.1.0",
"eslint": "^9.2.0",
"husky": "^9.0.11"
"@firefoxic/eslint-config": "^3.0.1",
"@firefoxic/update-changelog": "^0.2.0",
"eslint": "^9.9.0"
},
"keywords": [
"javascript",
Expand Down
Loading

0 comments on commit 8a1b9df

Please sign in to comment.