mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Add baseline to eslint
This commit is contained in:
parent
54e10cacd3
commit
98d29c2134
1674
.eslint-baseline.json
Normal file
1674
.eslint-baseline.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -112,20 +112,11 @@ lint:
|
||||
- export PATH="./node_modules/.bin:$PATH"
|
||||
script:
|
||||
- yarn install --ignore-optional
|
||||
- apk add --no-cache jq
|
||||
- eslint "**/*.{js,vue}" --format json | jq '[.[] | select(.messages | length > 0)]' > eslint-current.json
|
||||
- new_errors=$(diff <(jq -S . eslint-baseline.json) <(jq -S . eslint-current.json))
|
||||
- |
|
||||
if [ -n "$new_errors" ]; then
|
||||
echo "New ESLint errors detected:"
|
||||
echo "$new_errors"
|
||||
exit 1
|
||||
else
|
||||
echo "No new ESLint errors detected."
|
||||
fi
|
||||
- npx eslint-baseline "**/*.{js,vue}"
|
||||
cache:
|
||||
paths:
|
||||
- node_modules/
|
||||
|
||||
# psalm_tests:
|
||||
# stage: Tests
|
||||
# image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82
|
||||
|
3337
eslint-baseline.json
3337
eslint-baseline.json
File diff suppressed because one or more lines are too long
@ -14,6 +14,7 @@
|
||||
"@ckeditor/ckeditor5-theme-lark": "^41.4.2",
|
||||
"@ckeditor/ckeditor5-vue": "^5.1.0",
|
||||
"@eslint/js": "^9.14.0",
|
||||
"@luminateone/eslint-baseline": "^1.0.9",
|
||||
"@symfony/webpack-encore": "^4.1.0",
|
||||
"@tsconfig/node14": "^1.0.1",
|
||||
"@types/dompurify": "^3.0.5",
|
||||
|
Loading…
x
Reference in New Issue
Block a user