Add baseline to eslint

This commit is contained in:
Julie Lenaerts 2024-12-11 10:38:55 +01:00
parent 54e10cacd3
commit 98d29c2134
4 changed files with 1677 additions and 3348 deletions

1674
.eslint-baseline.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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

File diff suppressed because one or more lines are too long

View File

@ -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",