Skip to content

Commit 0f5e3e9

Browse files
author
Glen Mailer
committedJan 31, 2021
Use old-style require syntax to keep the linter happy
1 parent aa38d42 commit 0f5e3e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules/*
22
example/*
33
example/node_modules/*
44
coverage/*
5+
test/fixtures/*

‎client-overlay.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ var colors = {
3535
darkgrey: '6d7891',
3636
};
3737

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

4040
function showProblems(type, lines) {
4141
clientOverlay.innerHTML = '';
4242
lines.forEach(function (msg) {
43-
msg = ansiHTML(htmlEncode(msg));
43+
msg = ansiHTML(htmlEntities.encode(msg));
4444
var div = document.createElement('div');
4545
div.style.marginBottom = '26px';
4646
div.innerHTML = problemType(type) + ' in ' + msg;

0 commit comments

Comments
 (0)
Please sign in to comment.