You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

lint-prepush

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lint-prepush - npm Package Compare versions

Comparing version

to
3.0.1

5

package.json
{
"name": "lint-prepush",
"version": "3.0.0",
"version": "3.0.1",
"description": "Run linters on committed files in a Branch🔬",

@@ -67,4 +67,5 @@ "author": "“Theenadayalan” <“puduvai.theena@gmail.com”>",

"linter",
"git"
"git",
"hooks"
]
}

19

README.md

@@ -10,8 +10,8 @@ # lint-prepush

This package will run linters on committed files while pushing the code to remote.
lint-prepush will run linters on the commited files while pushing the code to remote.
### Prerequisites🔭
* This package requires Node.js `>=10`.
* A package to manage git hooks.
* This package requires Node.js `>=18.18.0`.
* A package to manage git hooks. (a tool like [Husky](https://github.com/typicode/husky))

@@ -23,3 +23,3 @@ ### Installing

```bash
npm install --save-dev husky lint-prepush
npm install --save-dev lint-prepush
```

@@ -30,3 +30,3 @@

```bash
yarn add --dev husky lint-prepush
yarn add --dev lint-prepush
```

@@ -36,13 +36,8 @@

Configure the following scripts in package.json to lint your committed files 🔧. You can also follow any of the [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) methods to configure lint-prepush.
* Configure the following scripts in package.json to lint your committed files 🔧. You can also follow any of the [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) methods to configure lint-prepush.
* Here [Husky](https://github.com/typicode/husky) is used for managing git hooks.
* pre-push git hook needs to be configured. [Husky](https://github.com/typicode/husky) is a widely used package for managing git hooks.
```diff
{
+ "husky": {
+ "hooks": {
+ "pre-push": "lint-prepush"
+ }
+ },
+ "lint-prepush": {

@@ -49,0 +44,0 @@ + "base": "master",