web/: add check for change to eslint import

Change-Id: Idf94c8e0c92d34e840db549e9e704eb3373762ac
This commit is contained in:
Egon Elbre 2021-12-21 14:57:51 +02:00
parent e2481fb510
commit 5f39f20766
5 changed files with 21 additions and 2 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* linguist-generated=false

View File

@ -159,6 +159,8 @@ pipeline {
sh 'npm run check'
sh 'npm run lint'
}
sh './scripts/check-package-lock.sh'
}
}
stage('Cross Compile') {

16
scripts/check-package-lock.sh Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -ueo pipefail
set +x
exitcode=0
for component in "satellite" "storagenode" "multinode"
do
if grep -q "eslint-plugin-storj@github:storj/eslint-storj" "./web/$component/package-lock.json"; then
echo "$component/package-lock.json import for eslint-storj should not be changed."
exitcode=-1
fi
done
exit $exitcode

View File

@ -36191,7 +36191,7 @@
"eslint-plugin-storj": {
"version": "git+https://git@github.com/storj/eslint-storj.git#5f952ffab7141e752cc095e5f024c39bab89679f",
"dev": true,
"from": "eslint-plugin-storj@github:storj/eslint-storj"
"from": "eslint-plugin-storj@https://github.com/storj/eslint-storj"
},
"eslint-plugin-vue": {
"version": "7.16.0",

View File

@ -40088,7 +40088,7 @@
"eslint-plugin-storj": {
"version": "git+https://git@github.com/storj/eslint-storj.git#5f952ffab7141e752cc095e5f024c39bab89679f",
"dev": true,
"from": "eslint-plugin-storj@github:storj/eslint-storj"
"from": "eslint-plugin-storj@https://github.com/storj/eslint-storj"
},
"eslint-plugin-vue": {
"version": "7.16.0",