Skip to content

Commit 02606c2

Browse files
committed
chore: update dependencies
This also includes major version bumps of prettier and eslint, which triggered some changes.
1 parent 0d0f185 commit 02606c2

File tree

174 files changed

+1029
-1007
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+1029
-1007
lines changed

.eslintignore

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

.eslintrc.js

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

eslint.config.mjs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import js from "@eslint/js";
2+
import jest from "eslint-plugin-jest";
3+
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
4+
import globals from "globals";
5+
6+
export default [
7+
{
8+
ignores: ["dist", "docs", "example", "tutorials"],
9+
},
10+
js.configs.recommended,
11+
{
12+
files: ["test/**"],
13+
...jest.configs["flat/recommended"],
14+
rules: {
15+
...jest.configs["flat/recommended"].rules,
16+
"no-console": "off",
17+
},
18+
languageOptions: {
19+
globals: jest.environments.globals.globals,
20+
},
21+
},
22+
{
23+
languageOptions: {
24+
globals: {
25+
...globals.browser,
26+
...globals.node,
27+
},
28+
sourceType: "commonjs",
29+
},
30+
31+
rules: {
32+
"prefer-const": "error",
33+
"no-var": "error",
34+
"prettier/prettier": "error",
35+
curly: ["error", "multi-line"],
36+
},
37+
},
38+
eslintPluginPrettierRecommended,
39+
];
40+

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,23 @@
5959
"devDependencies": {
6060
"@babel/core": "^7.26.0",
6161
"@babel/preset-env": "^7.26.0",
62+
"@eslint/eslintrc": "^3.1.0",
63+
"@eslint/js": "^9.14.0",
6264
"babel-loader": "^9.2.1",
6365
"benchmark": "^2.1.4",
6466
"coveralls": "^3.0.3",
65-
"eslint": "^8.36.0",
66-
"eslint-plugin-jest": "^27.2.1",
67-
"eslint-plugin-prettier": "^4.2.1",
67+
"eslint": "^9.14.0",
68+
"eslint-config-prettier": "^9.1.0",
69+
"eslint-plugin-jest": "^28.9.0",
70+
"eslint-plugin-prettier": "^5.2.1",
71+
"globals": "^15.12.0",
6872
"husky": "^9.1.6",
6973
"jest": "^29.7.0",
7074
"jest-runner-eslint": "^2.2.1",
7175
"jsdoc": "^3.6.11",
7276
"jsdoc-template": "^1.2.0",
7377
"lodash.template": ">=4.5.0",
74-
"prettier": "^2.8.6",
78+
"prettier": "^3.3.3",
7579
"tsd-jsdoc": "^2.5.0",
7680
"webpack": "^5.96.1",
7781
"webpack-cli": "^5.1.4",

src/ast.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ AST.prototype.swapLocations = function (target, first, last, parser) {
184184
if (this.withSource) {
185185
target.loc.source = parser.lexer._input.substring(
186186
target.loc.start.offset,
187-
target.loc.end.offset
187+
target.loc.end.offset,
188188
);
189189
}
190190
}
@@ -208,7 +208,7 @@ AST.prototype.resolveLocations = function (target, first, last, parser) {
208208
if (this.withSource) {
209209
target.loc.source = parser.lexer._input.substring(
210210
target.loc.start.offset,
211-
target.loc.end.offset
211+
target.loc.end.offset,
212212
);
213213
}
214214
}
@@ -376,7 +376,7 @@ AST.prototype.prepare = function (kind, docs, parser) {
376376
location = new Location(
377377
src,
378378
start,
379-
new Position(parser.prev[0], parser.prev[1], parser.prev[2])
379+
new Position(parser.prev[0], parser.prev[1], parser.prev[2]),
380380
);
381381
// last argument is always the location
382382
args.push(location);

src/ast/array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ module.exports = Expr.extends(
4040
Expr.apply(this, [KIND, docs, location]);
4141
this.items = items;
4242
this.shortForm = shortForm;
43-
}
43+
},
4444
);

src/ast/arrowfunc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = Expression.extends(
3030
nullable,
3131
isStatic,
3232
docs,
33-
location
33+
location,
3434
) {
3535
Expression.apply(this, [KIND, docs, location]);
3636
this.arguments = args;
@@ -39,5 +39,5 @@ module.exports = Expression.extends(
3939
this.type = type;
4040
this.nullable = nullable;
4141
this.isStatic = isStatic || false;
42-
}
42+
},
4343
);

src/ast/assign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ module.exports = Expression.extends(
2424
this.left = left;
2525
this.right = right;
2626
this.operator = operator;
27-
}
27+
},
2828
);

src/ast/assignref.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ module.exports = Expression.extends(
2323
Expression.apply(this, [KIND, docs, location]);
2424
this.left = left;
2525
this.right = right;
26-
}
26+
},
2727
);

src/ast/attribute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ module.exports = Node.extends(
2222
Node.apply(this, [KIND, docs, location]);
2323
this.name = name;
2424
this.args = args;
25-
}
25+
},
2626
);

0 commit comments

Comments
 (0)