From 21c289d072a5a04709555a4a1f47040ec11c06fa Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Wed, 23 Nov 2022 16:29:23 +0000 Subject: [PATCH] Update .gitlab-ci.yml, package.json --- .gitlab-ci.yml | 6 +++--- package.json | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9288796..7a8eb28 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,7 +63,7 @@ eslint: paths: - node_modules/ script: - - npm run eslint-ci --silent > eslint-report.xml + - npm run eslint-ci --silent 2>/dev/null 1> eslint-report.xml artifacts: when: on_failure expose_as: 'eslint' @@ -85,7 +85,7 @@ stylelint: paths: - node_modules/ script: - - npm run stylelint-ci --silent > stylelint-report.json + - npm run stylelint-ci --silent 2>/dev/null 1> stylelint-report.json artifacts: when: on_failure expose_as: 'stylelint' @@ -115,4 +115,4 @@ front-build: needs: - phpcs - eslint - - stylelint \ No newline at end of file + - stylelint diff --git a/package.json b/package.json index bca5f7b..3245c61 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,11 @@ "watch-poll": "mix watch -- --watch-options-poll=1000", "hot": "mix watch --hot", "prod": "npm run production", - "production": "mix --production" + "production": "mix --production", + "eslint": "node ./node_modules/.bin/eslint --max-warnings 0 -c .eslintrc.json ./resources", + "eslint-ci": "node ./node_modules/.bin/eslint --max-warnings 0 -c .eslintrc.json ./resources -f junit", + "stylelint": "node ./node_modules/.bin/stylelint --max-warnings 0 '**/*.scss'", + "stylelint-ci": "node ./node_modules/.bin/stylelint --max-warnings 0 '**/*.scss' -f json" }, "devDependencies": { "@fortawesome/fontawesome-svg-core": "^6.1.2",