diff --git a/sass-lint.yml b/.sass-lint.yml similarity index 82% rename from sass-lint.yml rename to .sass-lint.yml index e68114a..989a471 100644 --- a/sass-lint.yml +++ b/.sass-lint.yml @@ -1,16 +1,16 @@ -######################### -## Sample Sass Lint File -######################### +############################################################################### +# sass-lint configuration + # Linter Options options: - merge-default-rules: true + merge-default-rules: false max-warnings: 1000 # File Options files: include: 'src/**/*.s+(a|c)ss' ignore: - - 'node_modules/**/*.*' + - 'node_modules/**/*' # Rule Configuration rules: @@ -23,7 +23,6 @@ rules: exclude: - breakpoint - mq - no-warn: 1 no-debug: 1 no-duplicate-properties: diff --git a/Jenkinsfile b/Jenkinsfile index 16b893b..5bfd8a7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -114,8 +114,9 @@ pipeline { } steps { unstash 'node_modules' - sh "yarn lint:sass -f checkstyle -o checkstyle_less.xml || true" - stash name: 'lint-sass', includes: 'checkstyle_less.xml' + writeFile file: 'checkstyle_sass.xml', text: '' + sh "yarn lint:sass -f checkstyle -o checkstyle_sass.xml || true" + stash name: 'lint-sass', includes: 'checkstyle_sass.xml' } } } diff --git a/package.json b/package.json index 59720c8..cb96da7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build": "run-s build:development --", "clean": "rimraf dist", "lint": "run-s lint:* --", - "lint:sass": "sass-lint -v -q -c sass-lint.yml", + "lint:sass": "sass-lint -v -q", "lint:eslint": "eslint .", "postinstall": "node ./devtools/lockfiles", "prepublishOnly": "run-s build:production",