Skip to content

Commit 4bf60a5

Browse files
committed
updating linting to later versions that work in node 24
1 parent 0d755bc commit 4bf60a5

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"babel-eslint": "^8.2.1",
3232
"browserify": "^15.2.0",
3333
"cross-env": "^5.1.3",
34-
"eslint": "^6.8.0",
35-
"eslint-plugin-ava": "9.0.0",
34+
"eslint": "^8.57.1",
35+
"eslint-plugin-ava": "^13.2.0",
3636
"jimp": "^0.2.28",
3737
"puppeteer": "^19.11.1",
3838
"rootrequire": "^1.0.0",

src/confetti.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
worker = new Worker(URL.createObjectURL(new Blob([code])));
211211
} catch (e) {
212212
// eslint-disable-next-line no-console
213-
typeof console !== undefined && typeof console.warn === 'function' ? console.warn('🎊 Could not load worker', e) : null;
213+
typeof console !== 'undefined' && typeof console.warn === 'function' ? console.warn('🎊 Could not load worker', e) : null;
214214

215215
return null;
216216
}
@@ -684,7 +684,7 @@
684684

685685
if (isLibCanvas && canvas) {
686686
if (document.body.contains(canvas)) {
687-
document.body.removeChild(canvas);
687+
document.body.removeChild(canvas);
688688
}
689689
canvas = null;
690690
initialized = false;

test/.eslintrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ env:
77
parser: babel-eslint
88
parserOptions:
99
sourceType: module
10+
ecmaVersion: 6
11+
ecmaFeatures:
12+
modules: true
1013
plugins:
1114
- ava

0 commit comments

Comments
 (0)