eslint-precommit
Advanced tools
+2
-2
@@ -13,9 +13,9 @@ #!/usr/bin/env node | ||
| fs.writeFileSync(path.join(cwd, '.git', 'hooks', 'pre-commit.cmd'), | ||
| fs.readFileSync('npm run lint')); | ||
| 'npm run lint'); | ||
| } else { | ||
| var filePath = path.join(cwd, '.git', 'hooks', 'pre-commit'); | ||
| fs.writeFileSync(filePath, | ||
| fs.readFileSync('#!/usr/bin/env bash\necho "hello" && npm run lint')); | ||
| '#!/usr/bin/env bash\necho "hello" && npm run lint'); | ||
| fs.chmodSync(filePath, '0755'); | ||
| } | ||
| }); |
+1
-1
| { | ||
| "name": "eslint-precommit", | ||
| "version": "1.1.1", | ||
| "version": "1.1.2", | ||
| "description": "eslint pre commit", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
36364
-0.09%