Skip to content

Commit

Permalink
chore: fix lint-staged for merge commits and restricted env requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Jan 26, 2024
1 parent bf6fd82 commit 37fa08b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
npx lint-staged --verbose --quiet
# ignore lint-staged if it is merge commit
git rev-parse -q --no-revs --verify MERGE_HEAD || npx lint-staged --verbose --quiet
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
"README.md",
"CLA.md",
"CHANGELOG.md",
"esm/**/*.js",
"esm/**/*.ts",
"esm/**/*.css",
"esm/**/*.less"
"esm/**/*.{js,ts,css,less}"
],
"sideEffects": [
"src/**/*.less"
Expand Down
7 changes: 5 additions & 2 deletions pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "2.0.0-beta.10",
"private": true,
"description": "Site of UI Playground project",
"license": "MIT",
"engines": {
"node": ">=20.0.0"
},
"scripts": {
"start": "npm run clean && npm rum watch",
"clean": "rimraf dist",
Expand Down Expand Up @@ -31,6 +35,5 @@
"webpack": "^5.90.0",
"webpack-bundle-analyzer": "^4.10.1",
"webpack-cli": "^5.1.4"
},
"license": "MIT"
}
}

0 comments on commit 37fa08b

Please sign in to comment.