Skip to content

Commit 5fd16e0

Browse files
committed
Update dev dependencies
Closes #273. We cannot upgrade Prettier because Jest is not compatible with it.
1 parent f01a3a6 commit 5fd16e0

File tree

6 files changed

+978
-901
lines changed

6 files changed

+978
-901
lines changed

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import domenicConfig from "@domenic/eslint-config";
2+
import globals from "globals";
3+
4+
export default [
5+
{
6+
ignores: [
7+
"test/output/",
8+
"test/__snapshots__/"
9+
]
10+
},
11+
{
12+
files: ["**/*.js"],
13+
languageOptions: {
14+
sourceType: "commonjs",
15+
globals: globals.node
16+
}
17+
},
18+
{
19+
files: [
20+
"test/test.js",
21+
"test/*.test.js"
22+
],
23+
languageOptions: {
24+
globals: globals.jest
25+
}
26+
},
27+
...domenicConfig,
28+
{
29+
rules: {
30+
"max-len": ["error", { code: 120, ignoreTemplateLiterals: true }],
31+
"require-unicode-regexp": "off"
32+
}
33+
}
34+
];

lib/output/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function isArrayBuffer(value) {
116116
try {
117117
byteLengthGetter.call(value);
118118
return true;
119-
} catch (e) {
119+
} catch {
120120
return false;
121121
}
122122
}

0 commit comments

Comments
 (0)