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