From 6b17e392cdd8a6f52a488c98f75cb00a4346440c Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Sat, 2 Jul 2022 09:12:07 -0700 Subject: [PATCH] [JENKINS-68887] `CssSyntaxError` when linting `war` module on Windows (#6744) --- .gitattributes | 3 ++- war/.stylelintrc.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 71b25de5fe..ba5608836c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -15,7 +15,8 @@ *.json text *.jelly text *.jellytag text -*.less text +# JENKINS-68887: postcss-less fails to properly parse .less files with Windows line breaks +*.less text eol=lf *.properties text *.rb text *.sh text diff --git a/war/.stylelintrc.js b/war/.stylelintrc.js index 0adfd78e3b..818e102c38 100644 --- a/war/.stylelintrc.js +++ b/war/.stylelintrc.js @@ -1,7 +1,8 @@ module.exports = { extends: "stylelint-config-standard", rules: { - indentation: null + indentation: null, + linebreaks: "unix" }, // Keeps the default level to warn to avoid breaking the current // CI build environment