Skip to content

Commit 5f14b01

Browse files
committed
Only display the jsx-quotes deprecation warning with the default formatter (fixes #221)
1 parent 0c5f9fa commit 5f14b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/jsx-quotes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = function(context) {
4545
return {
4646

4747
Program: function() {
48-
if (isWarnedForDeprecation) {
48+
if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) {
4949
return;
5050
}
5151
/* eslint-disable no-console */

0 commit comments

Comments
 (0)