Skip to content

Commit 25d2f45

Browse files
committed
chore: Configure *updated scripts
1 parent b277cd5 commit 25d2f45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"coveralls": "^3.0.9",
4242
"eslint": "^6.8.0",
4343
"eslint-plugin-import": "^2.20.1",
44+
"git-list-updated": "^1.2.1",
4445
"husky": "^4.2.3",
4546
"jest": "^24.9.0",
4647
"lint-staged": "^10.0.8",
@@ -54,8 +55,11 @@
5455
"scripts": {
5556
"coverage": "jest --coverage",
5657
"lint": "eslint . --cache",
58+
"lint:updated": "pipe-git-updated --ext=js -- eslint --cache",
5759
"prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
60+
"prettier-check:updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
5861
"prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
62+
"prettify:updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
5963
"test": "jest"
6064
},
6165
"license": "MIT"

0 commit comments

Comments
 (0)