Initial commit
This commit is contained in:
14
frontend/webapp/node_modules/eslint-plugin-react/lib/util/error.js
generated
vendored
Normal file
14
frontend/webapp/node_modules/eslint-plugin-react/lib/util/error.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Logs out a message if there is no format option set.
|
||||
* @param {string} message - Message to log.
|
||||
*/
|
||||
function error(message) {
|
||||
if (!/=-(f|-format)=/.test(process.argv.join('='))) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(message);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = error;
|
||||
Reference in New Issue
Block a user