Skip to content
This repository was archived by the owner on Sep 3, 2026. It is now read-only.

Commit 0f5e3e9

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

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.eslintignore‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 2 additions & 2 deletions
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)