Skip to content

Commit 7ccad4d

Browse files
committed
Add lockfile-lint
1 parent 0119877 commit 7ccad4d

2 files changed

Lines changed: 183 additions & 2 deletions

File tree

package-lock.json

Lines changed: 179 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"build": "inline-source --compress false --root src src/btn.html | html-minifier --config-file html-minifier.json -o docs/github-btn.html",
2727
"dist": "npm run build",
2828
"stylelint": "stylelint \"**/*.{css,scss}\" --ignore-path .gitignore",
29-
"lint": "npm-run-all --continue-on-error --parallel stylelint xo",
29+
"lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
30+
"lint": "npm-run-all --continue-on-error --parallel lockfile-lint stylelint xo",
3031
"xo": "xo",
3132
"test": "npm-run-all lint build docs-build",
3233
"watch": "npm-run-all --parallel watch-*",
@@ -39,8 +40,9 @@
3940
"chokidar-cli": "^2.1.0",
4041
"html-minifier": "^4.0.0",
4142
"inline-source-cli": "^2.0.0",
43+
"lockfile-lint": "^4.6.0",
4244
"npm-run-all": "^4.1.5",
43-
"stylelint": "^13.9.0",
45+
"stylelint": "13.9.0",
4446
"stylelint-config-twbs-bootstrap": "^2.1.0",
4547
"xo": "^0.37.1"
4648
},

0 commit comments

Comments
 (0)