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(path.join(__dirname, 'scripts', 'win.cmd'))); | ||
| fs.readFileSync('npm run lint')); | ||
| } else { | ||
| var filePath = path.join(cwd, '.git', 'hooks', 'pre-commit'); | ||
| fs.writeFileSync(filePath, | ||
| fs.readFileSync(path.join(__dirname, 'scripts', 'posix.sh'))); | ||
| fs.readFileSync('#!/usr/bin/env bash\necho "hello" && npm run lint')); | ||
| fs.chmodSync(filePath, '0755'); | ||
| } | ||
| }); |
+1
-1
| { | ||
| "name": "eslint-precommit", | ||
| "version": "1.1.0", | ||
| "version": "1.1.1", | ||
| "description": "eslint pre commit", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1
-50%36398
-0.19%