source: frontend/node_modules/eslint-plugin-react/lib/util/log.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 302 bytes
Line 
1'use strict';
2
3/**
4 * Logs out a message if there is no format option set.
5 * @param {string} message - Message to log.
6 */
7function log(message) {
8 if (!/=-(f|-format)=/.test(process.argv.join('='))) {
9 // eslint-disable-next-line no-console
10 console.log(message);
11 }
12}
13
14module.exports = log;
Note: See TracBrowser for help on using the repository browser.