Blame view

node_modules/eslint/lib/logging.js 506 Bytes
f7563de62   Palak Handa   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  /**
   * @fileoverview Handle logging for ESLint
   * @author Gyandeep Singh
   */
  
  "use strict";
  
  /* eslint no-console: "off" */
  
  /* istanbul ignore next */
  module.exports = {
  
      /**
       * Cover for console.log
       * @returns {void}
       */
      info() {
          console.log.apply(console, Array.prototype.slice.call(arguments));
      },
  
      /**
       * Cover for console.error
       * @returns {void}
       */
      error() {
          console.error.apply(console, Array.prototype.slice.call(arguments));
      }
  };