source: imaps-frontend/node_modules/eslint-plugin-react/lib/util/error.js@ 0c6b92a

main
Last change on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago

Pred finalna verzija

  • Property mode set to 100644
File size: 308 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 error(message) {
8 if (!/=-(f|-format)=/.test(process.argv.join('='))) {
9 // eslint-disable-next-line no-console
10 console.error(message);
11 }
12}
13
14module.exports = error;
Note: See TracBrowser for help on using the repository browser.