code: function linterResults(_results, code) {
          /* eslint-enable no-unused-vars */
          var results = JSON.parse(_results);
          var res = [{
              filePath: resourcePath,
              messages: Object.assign([], results[resourcePath])
          }];
  
          if (res[0].messages.length > 0) {
              (function () {
                  var warnings = 0;
                  var errors = 0;
                  var messages = res[0].messages;
                  messages.forEach(function (linter) {
                      if (linter.severity === 'warning') {
                          warnings++;
                      } else if (linter.severity === 'error') {
                          errors++;
                      }
                  });
                  var msg = (0, _scsslintStylish2.default)(res);
                  var emitter = void 0;
                  if (errors > 0) {
                      emitter = webpack.emitError;
                  } else {
                      emitter = webpack.emitWarning;
                  }
                  emitter(msg);
              })();
          }
      }
docs: /* eslint-disable no-unused-vars