From b3f79cb114d83d36d9a1e60a8f0f8f2ff9fe0796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 24 Nov 2022 11:17:43 +0100 Subject: [PATCH] git lab ci update --- .gitlab-ci.yml | 4 ++-- package.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e432feb..22b35f7 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' diff --git a/package.json b/package.json index c206177..f10ee14 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,10 @@ "hot": "mix watch --hot", "prod": "npm run production", "production": "mix --production", - "eslint": "node ./node_modules/.bin/eslint -c .eslintrc.json ./resources", - "eslint-ci": "node ./node_modules/.bin/eslint -c .eslintrc.json ./resources -f junit", - "stylelint": "npx stylelint '**/*.scss'", - "stylelint-ci": "npx stylelint '**/*.scss' -f json" + "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": { "@fancyapps/fancybox": "^3.5.7",