Skip to content

Commit

Permalink
Use old-style require syntax to keep the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Mailer committed Jan 31, 2021
1 parent aa38d42 commit 0f5e3e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/*
example/*
example/node_modules/*
coverage/*
test/fixtures/*
4 changes: 2 additions & 2 deletions client-overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ var colors = {
darkgrey: '6d7891',
};

var {encode: htmlEncode} = require('html-entities');
var htmlEntities = require('html-entities');

function showProblems(type, lines) {
clientOverlay.innerHTML = '';
lines.forEach(function (msg) {
msg = ansiHTML(htmlEncode(msg));
msg = ansiHTML(htmlEntities.encode(msg));
var div = document.createElement('div');
div.style.marginBottom = '26px';
div.innerHTML = problemType(type) + ' in ' + msg;
Expand Down

0 comments on commit 0f5e3e9

Please sign in to comment.