-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output a warning if React version is missing in settings
Resolves #1789
- Loading branch information
1 parent
f80e744
commit 8738e59
Showing
3 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict'; | ||
|
||
/** | ||
* Logs out a message if there is no format option set. | ||
* @param {String} message - Message to log. | ||
*/ | ||
function log(message) { | ||
if (!/\=-(f|-format)=/.test(process.argv.join('='))) { | ||
// eslint-disable-next-line no-console | ||
console.log(message); | ||
} | ||
} | ||
|
||
module.exports = log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters