Skip to content

Commit 5bf8bc5

Browse files
refactor: types for benchmarks and tests
1 parent 505a5e7 commit 5bf8bc5

70 files changed

Lines changed: 646 additions & 345 deletions

File tree

Some content is hidden

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

eslint.config.mjs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,14 @@ export default defineConfig([
182182
}
183183
},
184184
{
185-
files: ["test/**/*.mjs"],
186-
languageOptions: {
187-
ecmaVersion: 2022
188-
}
189-
},
190-
{
191-
files: ["setup/**/*.js", "tooling/**/*.js"],
185+
files: [
186+
"setup/**/*.js",
187+
"tooling/**/*.js",
188+
"test/*.benchmark.mjs",
189+
"test/benchmarkCases/_helpers/**/*.mjs",
190+
"test/benchmarkCases/**/webpack.config.mjs",
191+
"test/benchmarkCases/**/options.mjs"
192+
],
192193
languageOptions: {
193194
ecmaVersion: 2022
194195
},

lib/SizeFormatHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"use strict";
77

88
/**
9-
* @param {number} size the size in bytes
9+
* @param {number=} size the size in bytes
1010
* @returns {string} the formatted size
1111
*/
1212
module.exports.formatSize = (size) => {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@
3232
"prepare": "husky",
3333
"setup": "node ./setup/setup.js",
3434
"prelint": "yarn setup",
35-
"lint": "yarn lint:code && yarn lint:special && yarn lint:types && yarn lint:types-test && yarn lint:types-module-test && yarn lint:types-hot && yarn lint:yarn && yarn fmt:check && yarn lint:spellcheck",
35+
"lint": "yarn lint:code && yarn lint:special && yarn lint:types && yarn lint:types-test && yarn lint:types-benchmark && yarn lint:types-module-test && yarn lint:types-hot && yarn lint:yarn && yarn fmt:check && yarn lint:spellcheck",
3636
"lint:code": "node node_modules/eslint/bin/eslint.js --cache .",
3737
"lint:special": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals",
3838
"lint:types": "tsc",
3939
"lint:types-test": "tsc -p tsconfig.types.test.json",
40+
"lint:types-benchmark": "tsc -p tsconfig.types.benchmark.json",
4041
"lint:types-hot": "tsc -p tsconfig.hot.json",
4142
"lint:types-module-test": "tsc -p tsconfig.module.test.json",
4243
"lint:yarn": "yarn-deduplicate --fail --list -s highest yarn.lock",

0 commit comments

Comments
 (0)