Skip to content

Commit 9aa7928

Browse files
committed
Refactor TLSF allocator WAT and update dev dependencies
Refactors the TLSF allocator WebAssembly text (WAT) files for improved clarity and maintainability, including renaming variables, restructuring local variables, and updating function signatures. Updates ESLint configuration to allow invalid AST, disables additional rules, and narrows ignore patterns. Bumps dev dependencies: @typescript-eslint/* and globals to latest versions, and updates Node.js engine requirement to >=22. Removes an unnecessary ESLint directive in std/portable/index.d.ts.
1 parent 1664749 commit 9aa7928

File tree

9 files changed

+1024
-899
lines changed

9 files changed

+1024
-899
lines changed

eslint.config.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ export default tseslint.config(
1010
"build/**",
1111
"out/**",
1212
".github/**",
13-
"src/glue/wasm/**",
14-
"std/assembly/**",
15-
"std/portable/**",
16-
"tests/compiler/**",
17-
"tests/parser/**",
18-
"tests/asconfig/**/assembly/**",
19-
"lib/loader/tests/assembly/**"
13+
"tests/parser/**"
2014
]
2115
},
2216

@@ -131,6 +125,7 @@ export default tseslint.config(
131125
ecmaVersion: "latest",
132126
sourceType: "module",
133127
experimentalDecorators: true,
128+
allowInvalidAST: true,
134129
ecmaFeatures: {}
135130
}
136131
},
@@ -309,6 +304,13 @@ export default tseslint.config(
309304
"no-compare-neg-zero": "off",
310305
"no-inner-declarations": "off",
311306
"no-constant-condition": "off",
307+
"no-constant-binary-expression": "off",
308+
"no-const-assign": "off",
309+
"no-this-before-super": "off",
310+
"no-unreachable": "off",
311+
"no-dupe-class-members": "off",
312+
"no-dupe-args": "off",
313+
"constructor-super": "off",
312314
"use-isnan": "off",
313315
"@typescript-eslint/no-namespace": "off",
314316
"@typescript-eslint/no-unused-vars": "off",

package-lock.json

Lines changed: 14 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
"devDependencies": {
3232
"@eslint/js": "^9.39.2",
3333
"@types/node": "^25.0.10",
34-
"@typescript-eslint/eslint-plugin": "^8.53.1",
35-
"@typescript-eslint/parser": "^8.53.1",
36-
"typescript-eslint": "^8.53.1",
34+
"@typescript-eslint/eslint-plugin": "^8.54.0",
35+
"@typescript-eslint/parser": "^8.54.0",
36+
"typescript-eslint": "^8.54.0",
3737
"as-float": "^1.0.1",
3838
"diff": "^8.0.3",
3939
"esbuild": "^0.27.2",
4040
"eslint": "^9.39.2",
41-
"globals": "^15.14.0",
41+
"globals": "^17.1.0",
4242
"glob": "^13.0.0",
4343
"typescript": "^5.9.3"
4444
},

std/portable/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ declare namespace f64 {
299299
/** Negative infinity value. */
300300
export const NEGATIVE_INFINITY: f64;
301301
/** Not a number value. */
302-
/* eslint no-shadow-restricted-names: "off" */
303302
export const NaN: f64;
304303
/** Difference between 1 and the smallest representable value greater than 1. */
305304
export const EPSILON: f64;

0 commit comments

Comments
 (0)