Skip to content

Commit fbac64f

Browse files
committed
Fixed behavior of ignores/warnings/errors to preserve old behavior
1 parent d215467 commit fbac64f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cli/common.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ function cli(api){
5454
*/
5555
function filterRules(options) {
5656
var ignore = options.ignore,
57-
ruleset = CSSLint.getRuleset();
57+
ruleset = null;
5858

59-
if (ignore) {
59+
if (ignore) {
60+
ruleset = CSSLint.getRuleset();
6061
ignore.split(",").forEach(function(value){
6162
delete ruleset[value];
6263
});

0 commit comments

Comments
 (0)