fork-ts-checker-webpack-plugin 0.2.6 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,17 @@
1
-
2
- var chalk = require('chalk');
3
- var os = require('os');
4
-
5
- /**
6
- * Creates new default formatter.
7
- *
8
- * @returns {defaultFormatter}
9
- */
1
+ "use strict";
2
+ var chalk = require("chalk");
3
+ var os = require("os");
10
4
  module.exports = function createDefaultFormatter() {
11
- return function defaultFormatter(message, useColors) {
12
- var colors = new chalk.constructor({enabled: useColors});
13
- var messageColor = message.isWarningSeverity() ? colors.bold.yellow : colors.bold.red;
14
- var numberColor = colors.bold.cyan;
15
- var codeColor = colors.grey;
16
-
17
- return [
18
- messageColor(message.getSeverity().toUpperCase() + ' at ' + message.getFile()) +
19
- '(' + numberColor(message.getLine()) + ',' + numberColor(message.getCharacter()) + '): ',
20
- codeColor(message.getFormattedCode() + ': ') + message.getContent()
21
- ].join(os.EOL);
22
- };
5
+ return function defaultFormatter(message, useColors) {
6
+ var colors = new chalk.constructor({ enabled: useColors });
7
+ var messageColor = message.isWarningSeverity() ? colors.bold.yellow : colors.bold.red;
8
+ var fileAndNumberColor = colors.bold.cyan;
9
+ var codeColor = colors.grey;
10
+ return [
11
+ messageColor(message.getSeverity().toUpperCase() + " in ") +
12
+ fileAndNumberColor(message.getFile() + "(" + message.getLine() + "," + message.getCharacter() + ")") +
13
+ messageColor(':'),
14
+ codeColor(message.getFormattedCode() + ': ') + message.getContent()
15
+ ].join(os.EOL);
16
+ };
23
17
  };