lint-prepush
Advanced tools
Comparing version
{ | ||
"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" | ||
] | ||
} |
@@ -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", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
87781
0.06%1
-50%117
-4.1%