From b25884c5bd9887916d947896e62f51c3c68aa30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sun, 26 Nov 2017 17:57:14 -0500 Subject: [PATCH] Make stylelint report unncessary disables From the man: ``` --report-needless-disables, --rd Report stylelint-disable comments that are not blocking a lint warning. If you provide the argument "error", the process will exit with code 2 if needless disables are found. ``` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d158ed0e..f33dccce 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "test": "npm-run-all --aggregate-output --parallel --continue-on-error test:* lint:*", "test:mocha": "mocha --colors", "lint:js": "eslint . --report-unused-disable-directives --color", - "lint:css": "stylelint --color \"client/**/*.css\"" + "lint:css": "stylelint --color --report-needless-disables=error \"client/**/*.css\"" }, "keywords": [ "lounge",