diff --git a/.husky/pre-commit b/.git-hooks/pre-commit similarity index 83% rename from .husky/pre-commit rename to .git-hooks/pre-commit index bef77db..edbf51b 100755 --- a/.husky/pre-commit +++ b/.git-hooks/pre-commit @@ -1,5 +1,4 @@ +#!/bin/sh git stash -ku - trap "git stash pop" EXIT - pnpm test diff --git a/package.json b/package.json index 888781c..1e725e9 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "stylelint-plugin-logical-css": "^1.2.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", @@ -46,7 +46,6 @@ "@firefoxic/eslint-config": "^3.0.0", "@firefoxic/update-changelog": "^0.2.0", "eslint": "^9.9.0", - "husky": "^9.1.4", "stylelint": "^16.8.2" }, "keywords": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4c4e09b..e9a2e28 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,16 +20,13 @@ importers: devDependencies: '@firefoxic/eslint-config': specifier: ^3.0.0 - version: 3.0.0(eslint@9.9.0) + version: 3.0.1(eslint@9.9.0) '@firefoxic/update-changelog': specifier: ^0.2.0 version: 0.2.0 eslint: specifier: ^9.9.0 version: 9.9.0 - husky: - specifier: ^9.1.4 - version: 9.1.4 stylelint: specifier: ^16.8.2 version: 16.8.2 @@ -100,8 +97,8 @@ packages: resolution: {integrity: sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@firefoxic/eslint-config@3.0.0': - resolution: {integrity: sha512-lR1OFs1l0R14zJDPM1UkWBTSj5DzZ+8Uw8YLlUNyiyLR6qcKE3xtkFM/PemaYdjt5pGGQnXTkr+y9NHdaLJw8A==} + '@firefoxic/eslint-config@3.0.1': + resolution: {integrity: sha512-vjOwVzm2IfJnVNU9LeWKJQa6/De6G5lTJ6EKwD7eTGRkyECxTRZkIcDpULSDlsMxm18J8CvrafQ0ed4WhvmXXg==} engines: {node: ^18.12 || >=20.9} peerDependencies: eslint: ^9.9.0 @@ -441,11 +438,6 @@ packages: resolution: {integrity: sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==} engines: {node: '>=8'} - husky@9.1.4: - resolution: {integrity: sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==} - engines: {node: '>=18'} - hasBin: true - ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -852,7 +844,7 @@ snapshots: '@eslint/object-schema@2.1.4': {} - '@firefoxic/eslint-config@3.0.0(eslint@9.9.0)': + '@firefoxic/eslint-config@3.0.1(eslint@9.9.0)': dependencies: '@eslint/js': 9.9.0 '@stylistic/eslint-plugin-js': 2.6.4(eslint@9.9.0) @@ -1192,8 +1184,6 @@ snapshots: html-tags@3.3.1: {} - husky@9.1.4: {} - ignore@5.3.2: {} import-fresh@3.3.0: