Skip to content

Commit c93a334

Browse files
author
Edwin Zhang
committed
src/options.json: add emitWarningsAsErrors option for validation
1 parent 7647ac9 commit c93a334

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/options.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
},
4141
"sourceMap": {
4242
"type": [ "string", "boolean" ]
43+
},
44+
"emitWarningsAsErrors": {
45+
"type": ["boolean"]
4346
}
4447
},
4548
"errorMessage": {
@@ -50,7 +53,8 @@
5053
"syntax": "should be {String|Object} (https://github.com/postcss/postcss-loader#syntax)",
5154
"stringifier": "should be {String|Object} (https://github.com/postcss/postcss-loader#stringifier)",
5255
"plugins": "should be {Array|Object|Function} (https://github.com/postcss/postcss-loader#plugins)",
53-
"sourceMap": "should be {String|Boolean} (https://github.com/postcss/postcss-loader#sourcemap)"
56+
"sourceMap": "should be {String|Boolean} (https://github.com/postcss/postcss-loader#sourcemap)",
57+
"emitWarningsAsErrors": "should be {Boolean} (https://github.com/postcss/postcss-loader#emitWarningsAsError)"
5458
}
5559
},
5660
"additionalProperties": true

0 commit comments

Comments
 (0)