web/: add check for change to eslint import
Change-Id: Idf94c8e0c92d34e840db549e9e704eb3373762ac
This commit is contained in:
parent
e2481fb510
commit
5f39f20766
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
||||
* linguist-generated=false
|
@ -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
16
scripts/check-package-lock.sh
Executable 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
|
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user