Skip to content

Commit 8dd58c5

Browse files
authored
Extend lockfile-lint config (#648)
1 parent 1514dc1 commit 8dd58c5

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

lockfile-lint.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/** @see https://github.com/lirantal/lockfile-lint/tree/main/packages/lockfile-lint#file-based-configuration */
2+
module.exports = {
3+
type: "npm",
4+
path: "package-lock.json",
5+
allowedHosts: "npm",
6+
validateHttps: true,
7+
validateIntegrity: false,
8+
validatePackageNames: true,
9+
allowedPackageNameAliases: [
10+
"string-width-cjs:string-width",
11+
"strip-ansi-cjs: strip-ansi",
12+
"wrap-ansi-cjs:wrap-ansi",
13+
],
14+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"lint:quiet": "npm run lint -- --quiet",
3434
"lint:css": "stylelint '**/*.+(ts|tsx)'",
3535
"lint:css:quiet": "npm run lint:css -- --quiet",
36-
"lint:lockfile": "lockfile-lint --type npm --path package-lock.json --allowed-hosts npm --validate-https",
36+
"lint:lockfile": "lockfile-lint",
3737
"validate:all": "npm-run-all --parallel check:types check:format check:knip lint:quiet lint:css:quiet lint:lockfile test:all",
3838
"postinstall": "patch-package",
3939
"prepare": "husky install"

0 commit comments

Comments
 (0)