🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

eslint-precommit

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-precommit - npm Package Compare versions

Comparing version
1.1.1
to
1.1.2
+2
-2
bin/install.js

@@ -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');
}
});
{
"name": "eslint-precommit",
"version": "1.1.1",
"version": "1.1.2",
"description": "eslint pre commit",

@@ -5,0 +5,0 @@ "main": "index.js",