diff --git a/package-lock.json b/package-lock.json index 5bf6fc9..6ed592b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "eslint-plugin-zeng", - "version": "0.0.0", + "name": "eslint-plugin-jlc", + "version": "0.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "eslint-plugin-zeng", - "version": "0.0.0", + "name": "eslint-plugin-jlc", + "version": "0.0.5", "license": "MIT", "dependencies": { "requireindex": "^1.2.0" @@ -18,7 +18,8 @@ "eslint-plugin-eslint-plugin": "^6.0.0", "eslint-plugin-n": "^17.0.0", "mocha": "^10.0.0", - "npm-run-all2": "^6.1.2" + "npm-run-all2": "^6.1.2", + "simple-git-hooks": "^2.11.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2402,6 +2403,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/simple-git-hooks": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/simple-git-hooks/-/simple-git-hooks-2.11.1.tgz", + "integrity": "sha512-tgqwPUMDcNDhuf1Xf6KTUsyeqGdgKMhzaH4PAZZuzguOgTl5uuyeYe/8mWgAr6IBxB5V06uqEf6Dy37gIWDtDg==", + "dev": true, + "hasInstallScript": true, + "bin": { + "simple-git-hooks": "cli.js" + } + }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -4376,6 +4387,12 @@ "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", "dev": true }, + "simple-git-hooks": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/simple-git-hooks/-/simple-git-hooks-2.11.1.tgz", + "integrity": "sha512-tgqwPUMDcNDhuf1Xf6KTUsyeqGdgKMhzaH4PAZZuzguOgTl5uuyeYe/8mWgAr6IBxB5V06uqEf6Dy37gIWDtDg==", + "dev": true + }, "slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", diff --git a/package.json b/package.json index 1c8bdb9..cc02ca3 100644 --- a/package.json +++ b/package.json @@ -24,13 +24,14 @@ "requireindex": "^1.2.0" }, "devDependencies": { - "eslint": "^9.0.0", "@eslint/js": "^9.0.0", + "eslint": "^9.0.0", "eslint-doc-generator": "^1.0.0", "eslint-plugin-eslint-plugin": "^6.0.0", "eslint-plugin-n": "^17.0.0", "mocha": "^10.0.0", - "npm-run-all2": "^6.1.2" + "npm-run-all2": "^6.1.2", + "simple-git-hooks": "^2.11.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -38,5 +39,10 @@ "peerDependencies": { "eslint": ">=8.57.0" }, + "simple-git-hooks": { + "pre-commit": "npx lint-staged", + "pre-push": "npm run format", + "preserveUnused": true + }, "license": "MIT" }