From 9f2fb59543d61e10c5b5178d26dbb845638f18a7 Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Tue, 9 Dec 2025 18:24:18 +0900 Subject: [PATCH 1/6] Dev: Migrate to ESLint 9, flat config (#32471) --- .eslintrc.json | 88 ------- eslint.config.js | 119 +++++++++ package-lock.json | 647 +++++++++++++++++++++++++++++----------------- package.json | 25 +- 4 files changed, 542 insertions(+), 337 deletions(-) delete mode 100644 .eslintrc.json create mode 100644 eslint.config.js diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index bdb1813613c210..00000000000000 --- a/.eslintrc.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "root": true, - "env": { - "browser": true, - "node": true, - "es2018": true - }, - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module" - }, - "extends": [ - "mdcs", - "plugin:compat/recommended" - ], - "plugins": [ - "html", - "import" - ], - "settings": { - "polyfills": [ - "WebGL2RenderingContext" - ] - }, - "globals": { - "__THREE_DEVTOOLS__": "readonly", - "potpack": "readonly", - "fflate": "readonly", - "Stats": "readonly", - "XRWebGLBinding": "readonly", - "XRWebGLLayer": "readonly", - "GPUShaderStage": "readonly", - "GPUBufferUsage": "readonly", - "GPUTextureUsage": "readonly", - "GPUTexture": "readonly", - "GPUMapMode": "readonly", - "QUnit": "readonly", - "Ammo": "readonly", - "XRRigidTransform": "readonly", - "XRMediaBinding": "readonly", - "CodeMirror": "readonly", - "esprima": "readonly", - "jsonlint": "readonly", - "VideoFrame": "readonly", - "VideoDecoder": "readonly", - "Float16Array": "readonly" - }, - "rules": { - "no-throw-literal": [ - "error" - ], - "quotes": [ - "error", - "single" - ], - "prefer-const": [ - "error", - { - "destructuring": "any", - "ignoreReadBeforeAssign": false - } - ], - "no-irregular-whitespace": [ - "error" - ], - "no-duplicate-imports": [ - "error" - ], - "prefer-spread": "error", - "valid-jsdoc": [ - "error", - { - "requireReturn": false, - "requireReturnType": true, - "requireParamDescription": false, - "requireReturnDescription": false, - "requireParamType": true, - "preferType": { - "Any": "any", - "Boolean": "boolean", - "Number": "number", - "object": "Object", - "String": "string" - } - } - ] - } -} diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 00000000000000..02ba77a685d045 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,119 @@ +import js from '@eslint/js'; +import globals from 'globals'; +import mdcs from 'eslint-config-mdcs'; +import compat from 'eslint-plugin-compat'; +import html from 'eslint-plugin-html'; +import importPlugin from 'eslint-plugin-import'; +import jsdoc from 'eslint-plugin-jsdoc'; + +export default [ + // files to ignore + { + name: 'files to ignore', + ignores: [ + '**/node_modules/**', + '**/build/**', + '**/libs/**', + '**/ifc/**', + '**/prettify.js', + '**/prettify/**', + '**/3rdparty/**', + '**/shapefile.js', + '**/vendor/**', + '**/fuse/**' + ] + }, + + // recommended + js.configs.recommended, + // jsdoc.configs['flat/recommended'], + + // base rules + { + name: 'base rules', + files: [ '**/*.js', '**/*.html' ], + plugins: { + html, + import: importPlugin, + compat, + jsdoc + }, + languageOptions: { + ecmaVersion: 2018, + sourceType: 'module', + globals: { + ...globals.browser, + ...globals.node, + ...globals.es2017, + __THREE_DEVTOOLS__: 'readonly', + potpack: 'readonly', + fflate: 'readonly', + Stats: 'readonly', + XRWebGLBinding: 'readonly', + XRWebGLLayer: 'readonly', + GPUShaderStage: 'readonly', + GPUBufferUsage: 'readonly', + GPUTextureUsage: 'readonly', + GPUTexture: 'readonly', + GPUMapMode: 'readonly', + QUnit: 'readonly', + Ammo: 'readonly', + XRRigidTransform: 'readonly', + XRMediaBinding: 'readonly', + CodeMirror: 'readonly', + esprima: 'readonly', + jsonlint: 'readonly', + VideoFrame: 'readonly', + VideoDecoder: 'readonly', + Float16Array: 'readonly', + BigInt: 'readonly', + BigUint64Array: 'readonly' + }, + }, + settings: { + polyfills: [ + 'WebGL2RenderingContext' + ], + jsdoc: { + preferredTypes: { + Any: 'any', + Boolean: 'boolean', + Number: 'number', + object: 'Object', + String: 'string' + }, + tagNamePreference: { + returns: 'return', + extends: 'augments' + }, + }, + }, + rules: { + ...mdcs.rules, + ...compat.configs.recommended.rules, + 'no-throw-literal': 'error', + 'quotes': [ 'error', 'single' ], + 'prefer-const': [ 'error', { + destructuring: 'any', + ignoreReadBeforeAssign: false + } ], + 'no-irregular-whitespace': 'error', + 'no-duplicate-imports': 'error', + 'prefer-spread': 'error', + + 'no-useless-escape': 'off', + 'no-case-declarations': 'off', + 'no-cond-assign': 'off', + 'getter-return': 'off', + 'no-async-promise-executor': 'off', + 'no-empty': 'off', + + // 'jsdoc/check-types': 'error', + 'jsdoc/require-returns': 'off', + 'jsdoc/require-returns-type': 'error', + 'jsdoc/require-param-description': 'off', + 'jsdoc/require-returns-description': 'off', + 'jsdoc/require-param-type': 'error' + } + } +]; diff --git a/package-lock.json b/package-lock.json index b4f48ff7a12cfb..fe21a2c7204263 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,14 +9,17 @@ "version": "0.181.0", "license": "MIT", "devDependencies": { + "@eslint/js": "^9.0.0", "@rollup/plugin-node-resolve": "^16.0.0", "@rollup/plugin-terser": "^0.4.0", "concurrently": "^9.0.0", - "eslint": "^8.37.0", + "eslint": "^9.0.0", "eslint-config-mdcs": "^5.0.0", "eslint-plugin-compat": "^6.0.0", - "eslint-plugin-html": "^8.0.0", - "eslint-plugin-import": "^2.27.5", + "eslint-plugin-html": "^8.1.3", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-jsdoc": "^61.4.1", + "globals": "^16.5.0", "jimp": "^1.6.0", "jsdoc": "^4.0.5", "magic-string": "^0.30.0", @@ -103,6 +106,33 @@ "node": ">=6.9.0" } }, + "node_modules/@es-joy/jsdoccomment": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.76.0.tgz", + "integrity": "sha512-g+RihtzFgGTx2WYCuTHbdOXJeAlGnROws0TeALx9ow/ZmOROOZkVg5wp/B44n0WJgI4SQFP1eWM2iRPlU2Y14w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.8", + "@typescript-eslint/types": "^8.46.0", + "comment-parser": "1.4.1", + "esquery": "^1.6.0", + "jsdoc-type-pratt-parser": "~6.10.0" + }, + "engines": { + "node": ">=20.11.0" + } + }, + "node_modules/@es-joy/resolve.exports": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@es-joy/resolve.exports/-/resolve.exports-1.2.0.tgz", + "integrity": "sha512-Q9hjxWI5xBM+qW2enxfe8wDKdFWMfd0Z29k5ZJnuBqD/CasY5Zryj09aCA6owbGATWz+39p5uIdaHXpopOcG8g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.9.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", @@ -132,38 +162,119 @@ "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, + "node_modules/@eslint/config-array": { + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz", + "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==", "dev": true, "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", + "espree": "^10.0.1", + "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", + "js-yaml": "^4.1.1", "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@eslint/js": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", - "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", + "version": "9.39.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.1.tgz", + "integrity": "sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==", "dev": true, "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@gar/promisify": { @@ -173,20 +284,28 @@ "dev": true, "license": "MIT" }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", - "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", - "deprecated": "Use @eslint/config-array instead", + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.3", - "debug": "^4.3.1", - "minimatch": "^3.0.5" + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" }, "engines": { - "node": ">=10.10.0" + "node": ">=18.18.0" } }, "node_modules/@humanwhocodes/module-importer": { @@ -203,13 +322,19 @@ "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "deprecated": "Use @eslint/object-schema instead", + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", "dev": true, - "license": "BSD-3-Clause" + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } }, "node_modules/@isaacs/cliui": { "version": "8.0.2", @@ -847,44 +972,6 @@ "dev": true, "license": "CC0-1.0" }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/@npmcli/fs": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-3.1.1.tgz", @@ -1621,6 +1708,19 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/@sindresorhus/base62": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/base62/-/base62-1.0.0.tgz", + "integrity": "sha512-TeheYy0ILzBEI/CO55CP6zJCSdSWeRtGnHy8U8dWSUH4I68iqTsy7HkMktR4xakThc9jotkPQUXT4ITdbV7cHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@tokenizer/token": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", @@ -1702,6 +1802,13 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", @@ -1722,7 +1829,6 @@ "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/linkify-it": "^5", "@types/mdurl": "^2" @@ -1770,12 +1876,19 @@ "@types/node": "*" } }, - "node_modules/@ungap/structured-clone": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", - "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "node_modules/@typescript-eslint/types": { + "version": "8.48.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.48.1.tgz", + "integrity": "sha512-+fZ3LZNeiELGmimrujsDCT4CRIbq5oXdHe7chLiW8qzqyPMnn1puNstCrMNVAqwcl2FdIxkuJ4tOs/RFDBVc/Q==", "dev": true, - "license": "ISC" + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } }, "node_modules/abbrev": { "version": "1.1.1", @@ -1827,7 +1940,6 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1959,6 +2071,16 @@ "dev": true, "license": "ISC" }, + "node_modules/are-docs-informative": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/are-docs-informative/-/are-docs-informative-0.0.2.tgz", + "integrity": "sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + } + }, "node_modules/are-we-there-yet": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", @@ -2507,7 +2629,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "baseline-browser-mapping": "^2.8.19", "caniuse-lite": "^1.0.30001751", @@ -2904,6 +3025,16 @@ "node": ">= 10" } }, + "node_modules/comment-parser": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.1.tgz", + "integrity": "sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 12.0.0" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -3222,21 +3353,7 @@ "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1534754.tgz", "integrity": "sha512-26T91cV5dbOYnXdJi5qQHoTtUoNEqwkHcAyu/IKtjIAxiEqPMrDiRkDOPWVsGfNZGmlQVHQbZRSjD8sxagWVsQ==", "dev": true, - "license": "BSD-3-Clause", - "peer": true - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } + "license": "BSD-3-Clause" }, "node_modules/dom-serializer": { "version": "2.0.0", @@ -3632,61 +3749,63 @@ } }, "node_modules/eslint": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", - "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", - "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "version": "9.39.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz", + "integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.1", - "@humanwhocodes/config-array": "^0.13.0", + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.39.1", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", "ajv": "^6.12.4", "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", + "cross-spawn": "^7.0.6", "debug": "^4.3.2", - "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", + "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" + "optionator": "^0.9.3" }, "bin": { "eslint": "bin/eslint.js" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } } }, "node_modules/eslint-config-mdcs": { @@ -3862,10 +3981,50 @@ "semver": "bin/semver.js" } }, + "node_modules/eslint-plugin-jsdoc": { + "version": "61.4.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-61.4.1.tgz", + "integrity": "sha512-3c1QW/bV25sJ1MsIvsvW+EtLtN6yZMduw7LVQNVt72y2/5BbV5Pg5b//TE5T48LRUxoEQGaZJejCmcj3wCxBzw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@es-joy/jsdoccomment": "~0.76.0", + "@es-joy/resolve.exports": "1.2.0", + "are-docs-informative": "^0.0.2", + "comment-parser": "1.4.1", + "debug": "^4.4.3", + "escape-string-regexp": "^4.0.0", + "espree": "^10.4.0", + "esquery": "^1.6.0", + "html-entities": "^2.6.0", + "object-deep-merge": "^2.0.0", + "parse-imports-exports": "^0.2.4", + "semver": "^7.7.3", + "spdx-expression-parse": "^4.0.0", + "to-valid-identifier": "^1.0.0" + }, + "engines": { + "node": ">=20.11.0" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-jsdoc/node_modules/spdx-expression-parse": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz", + "integrity": "sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", "dev": true, "license": "BSD-2-Clause", "dependencies": { @@ -3873,7 +4032,7 @@ "estraverse": "^5.2.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -3892,19 +4051,45 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.9.0", + "acorn": "^8.15.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "eslint-visitor-keys": "^4.2.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -4143,16 +4328,6 @@ "dev": true, "license": "MIT" }, - "node_modules/fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, "node_modules/fd-slicer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", @@ -4164,16 +4339,16 @@ } }, "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "dev": true, "license": "MIT", "dependencies": { - "flat-cache": "^3.0.4" + "flat-cache": "^4.0.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16.0.0" } }, "node_modules/file-type": { @@ -4258,18 +4433,17 @@ } }, "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "dev": true, "license": "MIT", "dependencies": { "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" + "keyv": "^4.5.4" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16" } }, "node_modules/flatted": { @@ -4607,16 +4781,13 @@ } }, "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", "dev": true, "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -4673,13 +4844,6 @@ "dev": true, "license": "ISC" }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true, - "license": "MIT" - }, "node_modules/gzip-size": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", @@ -4817,6 +4981,23 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/html-entities": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.6.0.tgz", + "integrity": "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/mdevils" + }, + { + "type": "patreon", + "url": "https://patreon.com/mdevils" + } + ], + "license": "MIT" + }, "node_modules/htmlparser2": { "version": "10.0.0", "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.0.0.tgz", @@ -5359,16 +5540,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/is-regex": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", @@ -5650,6 +5821,16 @@ "node": ">=12.0.0" } }, + "node_modules/jsdoc-type-pratt-parser": { + "version": "6.10.0", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-6.10.0.tgz", + "integrity": "sha512-+LexoTRyYui5iOhJGn13N9ZazL23nAHGkXsa1p/C8yeq79WRfLBag6ZZ0FQG2aRoc9yfo59JT9EYCQonOkHKkQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } + }, "node_modules/jsdoc/node_modules/escape-string-regexp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", @@ -6792,6 +6973,13 @@ "node": ">=0.10.0" } }, + "node_modules/object-deep-merge": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/object-deep-merge/-/object-deep-merge-2.0.0.tgz", + "integrity": "sha512-3DC3UMpeffLTHiuXSy/UG4NOIYTLlY9u3V82+djSCLYClWobZiS4ivYzpIUWrRY/nfsJ8cWsKyG3QfyLePmhvg==", + "dev": true, + "license": "MIT" + }, "node_modules/object-inspect": { "version": "1.13.4", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", @@ -7122,6 +7310,16 @@ "xml2js": "^0.5.0" } }, + "node_modules/parse-imports-exports": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/parse-imports-exports/-/parse-imports-exports-0.2.4.tgz", + "integrity": "sha512-4s6vd6dx1AotCx/RCI2m7t7GCh5bDRUtGNvRfHSP2wbBQdMi67pPe7mtzmgwcaQ8VKK/6IB7Glfyu3qdZJPybQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parse-statements": "1.0.11" + } + }, "node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", @@ -7141,6 +7339,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/parse-statements": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/parse-statements/-/parse-statements-1.0.11.tgz", + "integrity": "sha512-HlsyYdMBnbPQ9Jr/VgJ1YF4scnldvJpJxCVx6KgqPL4dxppsWrJHCIIxQXMJrqGnsRkNPATbeMJ8Yxu7JMsYcA==", + "dev": true, + "license": "MIT" + }, "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", @@ -7483,27 +7688,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/qunit": { "version": "2.24.3", "resolved": "https://registry.npmjs.org/qunit/-/qunit-2.24.3.tgz", @@ -7777,6 +7961,19 @@ "lodash": "^4.17.21" } }, + "node_modules/reserved-identifiers": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/reserved-identifiers/-/reserved-identifiers-1.2.0.tgz", + "integrity": "sha512-yE7KUfFvaBFzGPs5H3Ops1RevfUEsDc5Iz65rOwWg4lE8HJSYtle77uul3+573457oHvBKuHYDl/xqUkKpEEdw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/resolve": { "version": "1.22.11", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", @@ -7818,17 +8015,6 @@ "node": ">= 4" } }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -7852,7 +8038,6 @@ "integrity": "sha512-w8GmOxZfBmKknvdXU1sdM9NHcoQejwF/4mNgj2JuEEdRaHwwF12K7e9eXn1nLZ07ad+du76mkVsyeb2rKGllsA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/estree": "1.0.8" }, @@ -7909,30 +8094,6 @@ "node": ">=16.0.0" } }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, "node_modules/rxjs": { "version": "7.8.2", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", @@ -9086,13 +9247,6 @@ "b4a": "^1.6.4" } }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true, - "license": "MIT" - }, "node_modules/tiny-glob": { "version": "0.2.9", "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", @@ -9111,6 +9265,23 @@ "dev": true, "license": "MIT" }, + "node_modules/to-valid-identifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-valid-identifier/-/to-valid-identifier-1.0.0.tgz", + "integrity": "sha512-41wJyvKep3yT2tyPqX/4blcfybknGB4D+oETKLs7Q76UiPqRpUJK3hr1nxelyYO0PHKVzJwlu0aCeEAsGI6rpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sindresorhus/base62": "^1.0.0", + "reserved-identifiers": "^1.0.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/toidentifier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", diff --git a/package.json b/package.json index dd8345a0dfc4b7..c75f8d156bdd2e 100644 --- a/package.json +++ b/package.json @@ -53,14 +53,14 @@ "preview": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"", "preview-ssl": "concurrently --names \"ROLLUP,HTTPS\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"", "lint-core": "eslint src", - "lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc", - "lint-examples": "eslint examples --ext .html", - "lint-docs": "eslint docs --ignore-pattern prettify.js", - "lint-editor": "eslint editor --ignore-pattern libs", - "lint-playground": "eslint playground --ignore-pattern libs", - "lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js", - "lint-test": "eslint test --ignore-pattern vendor", - "lint-utils": "eslint utils --ignore-pattern prettify --ignore-pattern fuse", + "lint-addons": "eslint examples/jsm", + "lint-examples": "eslint examples", + "lint-docs": "eslint docs", + "lint-editor": "eslint editor", + "lint-playground": "eslint playground", + "lint-manual": "eslint manual", + "lint-test": "eslint test", + "lint-utils": "eslint utils", "lint": "npm run lint-core", "lint-fix": "npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-examples -- --fix && npm run lint-docs -- --fix && npm run lint-editor -- --fix && npm run lint-playground -- --fix && npm run lint-manual -- --fix && npm run lint-test -- --fix && npm run lint-utils -- --fix", "test-unit": "qunit test/unit/three.source.unit.js", @@ -94,14 +94,17 @@ }, "homepage": "https://threejs.org/", "devDependencies": { + "@eslint/js": "^9.0.0", "@rollup/plugin-node-resolve": "^16.0.0", "@rollup/plugin-terser": "^0.4.0", "concurrently": "^9.0.0", - "eslint": "^8.37.0", + "eslint": "^9.0.0", "eslint-config-mdcs": "^5.0.0", "eslint-plugin-compat": "^6.0.0", - "eslint-plugin-html": "^8.0.0", - "eslint-plugin-import": "^2.27.5", + "eslint-plugin-html": "^8.1.3", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-jsdoc": "^61.4.1", + "globals": "^16.5.0", "jimp": "^1.6.0", "jsdoc": "^4.0.5", "magic-string": "^0.30.0", From cea3fa498481e9f4e6f4e6fe465edef583868ad5 Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Tue, 9 Dec 2025 10:31:11 +0100 Subject: [PATCH 2/6] Examples: Fix MRT readback with WebGL backend. (#32505) --- .../webgpu_multiple_rendertargets_readback.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/webgpu_multiple_rendertargets_readback.html b/examples/webgpu_multiple_rendertargets_readback.html index 6f272e074cb99f..70386e886af8ff 100644 --- a/examples/webgpu_multiple_rendertargets_readback.html +++ b/examples/webgpu_multiple_rendertargets_readback.html @@ -155,27 +155,27 @@ torus.rotation.y = ( time / 1000 ) * .4; - const isMRT = selection === 'mrt'; + const isReadback = ( selection !== 'mrt' ); // render scene into target - renderer.setMRT( isMRT ? sceneMRT : null ); - renderer.setRenderTarget( isMRT ? renderTarget : readbackTarget ); + renderer.setMRT( sceneMRT ); + renderer.setRenderTarget( isReadback ? readbackTarget : renderTarget ); renderer.render( scene, camera ); // render post FX renderer.setMRT( null ); renderer.setRenderTarget( null ); - if ( isMRT ) { - - quadMesh.material = material; - - } else { + if ( isReadback ) { quadMesh.material = readbackMaterial; await readback(); + } else { + + quadMesh.material = material; + } quadMesh.render( renderer ); From f3bb8893ca30b23853a623e747c8d2f4bf39cad7 Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Tue, 9 Dec 2025 10:42:15 +0100 Subject: [PATCH 3/6] Clean up. (#32518) --- src/renderers/webgl/WebGLTextures.js | 5 ++--- src/renderers/webgpu/utils/WebGPUPipelineUtils.js | 2 +- src/renderers/webgpu/utils/WebGPUTextureUtils.js | 4 +++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/renderers/webgl/WebGLTextures.js b/src/renderers/webgl/WebGLTextures.js index 49aa5ee6be3ae5..e29b1799cd5422 100644 --- a/src/renderers/webgl/WebGLTextures.js +++ b/src/renderers/webgl/WebGLTextures.js @@ -24,10 +24,10 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, try { useOffscreenCanvas = typeof OffscreenCanvas !== 'undefined' - // eslint-disable-next-line compat/compat && ( new OffscreenCanvas( 1, 1 ).getContext( '2d' ) ) !== null; - } catch ( err ) { + + } catch ( err ) { // eslint-disable-line no-unused-vars // Ignore any errors @@ -38,7 +38,6 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, // Use OffscreenCanvas when available. Specially needed in web workers return useOffscreenCanvas ? - // eslint-disable-next-line compat/compat new OffscreenCanvas( width, height ) : createElementNS( 'canvas' ); } diff --git a/src/renderers/webgpu/utils/WebGPUPipelineUtils.js b/src/renderers/webgpu/utils/WebGPUPipelineUtils.js index 5b1a2e4c4da2ad..1f08cf0328b3c8 100644 --- a/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +++ b/src/renderers/webgpu/utils/WebGPUPipelineUtils.js @@ -271,7 +271,7 @@ class WebGPUPipelineUtils { pipelineData.pipeline = await device.createRenderPipelineAsync( pipelineDescriptor ); - } catch ( err ) { } + } catch ( err ) { } // eslint-disable-line no-unused-vars const errorScope = await device.popErrorScope(); diff --git a/src/renderers/webgpu/utils/WebGPUTextureUtils.js b/src/renderers/webgpu/utils/WebGPUTextureUtils.js index afb9bd2832ec85..3014d763333ea4 100644 --- a/src/renderers/webgpu/utils/WebGPUTextureUtils.js +++ b/src/renderers/webgpu/utils/WebGPUTextureUtils.js @@ -789,7 +789,9 @@ class WebGPUTextureUtils { } ); - } catch ( _ ) {} // try/catch has been added to fix bad video frame data on certain devices, see #32391 + // try/catch has been added to fix bad video frame data on certain devices, see #32391 + + } catch ( _ ) {} // eslint-disable-line no-unused-vars } From d7186e7dc9f4d325d7d75b9011ed14559fcf99ab Mon Sep 17 00:00:00 2001 From: mrdoob Date: Tue, 9 Dec 2025 18:47:09 +0900 Subject: [PATCH 4/6] UnrealBloomPass: Fix alpha handling. (#32517) --- .../jsm/postprocessing/UnrealBloomPass.js | 72 ++++++++++++++----- 1 file changed, 53 insertions(+), 19 deletions(-) diff --git a/examples/jsm/postprocessing/UnrealBloomPass.js b/examples/jsm/postprocessing/UnrealBloomPass.js index decd2eb38d41ea..786ba19751466c 100644 --- a/examples/jsm/postprocessing/UnrealBloomPass.js +++ b/examples/jsm/postprocessing/UnrealBloomPass.js @@ -1,8 +1,9 @@ import { - AdditiveBlending, Color, + CustomBlending, HalfFloatType, MeshBasicMaterial, + OneFactor, ShaderMaterial, UniformsUtils, Vector2, @@ -187,7 +188,11 @@ class UnrealBloomPass extends Pass { uniforms: this.copyUniforms, vertexShader: CopyShader.vertexShader, fragmentShader: CopyShader.fragmentShader, - blending: AdditiveBlending, + blending: CustomBlending, + blendSrc: OneFactor, + blendDst: OneFactor, + blendSrcAlpha: OneFactor, + blendDstAlpha: OneFactor, depthTest: false, depthWrite: false, transparent: true @@ -399,33 +404,46 @@ class UnrealBloomPass extends Pass { 'gaussianCoefficients': { value: coefficients } // precomputed Gaussian coefficients }, - vertexShader: - `varying vec2 vUv; + vertexShader: /* glsl */` + + varying vec2 vUv; + void main() { + vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); + }`, - fragmentShader: - `#include + fragmentShader: /* glsl */` + + #include + varying vec2 vUv; + uniform sampler2D colorTexture; uniform vec2 invSize; uniform vec2 direction; uniform float gaussianCoefficients[KERNEL_RADIUS]; void main() { + float weightSum = gaussianCoefficients[0]; vec3 diffuseSum = texture2D( colorTexture, vUv ).rgb * weightSum; - for( int i = 1; i < KERNEL_RADIUS; i ++ ) { - float x = float(i); + + for ( int i = 1; i < KERNEL_RADIUS; i ++ ) { + + float x = float( i ); float w = gaussianCoefficients[i]; vec2 uvOffset = direction * invSize * x; vec3 sample1 = texture2D( colorTexture, vUv + uvOffset ).rgb; vec3 sample2 = texture2D( colorTexture, vUv - uvOffset ).rgb; diffuseSum += ( sample1 + sample2 ) * w; + } + gl_FragColor = vec4( diffuseSum, 1.0 ); + }` } ); @@ -451,15 +469,21 @@ class UnrealBloomPass extends Pass { 'bloomRadius': { value: 0.0 } }, - vertexShader: - `varying vec2 vUv; + vertexShader: /* glsl */` + + varying vec2 vUv; + void main() { + vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); + }`, - fragmentShader: - `varying vec2 vUv; + fragmentShader: /* glsl */` + + varying vec2 vUv; + uniform sampler2D blurTexture1; uniform sampler2D blurTexture2; uniform sampler2D blurTexture3; @@ -470,17 +494,27 @@ class UnrealBloomPass extends Pass { uniform float bloomFactors[NUM_MIPS]; uniform vec3 bloomTintColors[NUM_MIPS]; - float lerpBloomFactor(const in float factor) { + float lerpBloomFactor( const in float factor ) { + float mirrorFactor = 1.2 - factor; - return mix(factor, mirrorFactor, bloomRadius); + return mix( factor, mirrorFactor, bloomRadius ); + } void main() { - gl_FragColor = bloomStrength * ( lerpBloomFactor(bloomFactors[0]) * vec4(bloomTintColors[0], 1.0) * texture2D(blurTexture1, vUv) + - lerpBloomFactor(bloomFactors[1]) * vec4(bloomTintColors[1], 1.0) * texture2D(blurTexture2, vUv) + - lerpBloomFactor(bloomFactors[2]) * vec4(bloomTintColors[2], 1.0) * texture2D(blurTexture3, vUv) + - lerpBloomFactor(bloomFactors[3]) * vec4(bloomTintColors[3], 1.0) * texture2D(blurTexture4, vUv) + - lerpBloomFactor(bloomFactors[4]) * vec4(bloomTintColors[4], 1.0) * texture2D(blurTexture5, vUv) ); + + // 3.0 for backwards compatibility with previous alpha-based intensity + vec3 bloom = 3.0 * bloomStrength * ( + lerpBloomFactor( bloomFactors[ 0 ] ) * bloomTintColors[ 0 ] * texture2D( blurTexture1, vUv ).rgb + + lerpBloomFactor( bloomFactors[ 1 ] ) * bloomTintColors[ 1 ] * texture2D( blurTexture2, vUv ).rgb + + lerpBloomFactor( bloomFactors[ 2 ] ) * bloomTintColors[ 2 ] * texture2D( blurTexture3, vUv ).rgb + + lerpBloomFactor( bloomFactors[ 3 ] ) * bloomTintColors[ 3 ] * texture2D( blurTexture4, vUv ).rgb + + lerpBloomFactor( bloomFactors[ 4 ] ) * bloomTintColors[ 4 ] * texture2D( blurTexture5, vUv ).rgb + ); + + float bloomAlpha = max( bloom.r, max( bloom.g, bloom.b ) ); + gl_FragColor = vec4( bloom, bloomAlpha ); + }` } ); From 5aea7c6768ccc923c25946a8ff1572b496284f2d Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Tue, 9 Dec 2025 11:47:41 +0100 Subject: [PATCH 5/6] Global: Clean up. (#32519) --- editor/index.html | 2 +- editor/js/Script.js | 4 +- editor/js/Selector.js | 2 +- editor/js/Sidebar.Material.js | 4 +- editor/js/Sidebar.Object.js | 4 +- editor/sw.js | 4 +- eslint.config.js | 6 +- examples/jsm/capabilities/WebGL.js | 4 +- examples/jsm/helpers/ViewHelper.js | 2 +- examples/jsm/loaders/3DMLoader.js | 9 +- examples/jsm/loaders/FBXLoader.js | 2 - examples/jsm/loaders/HDRLoader.js | 1 - examples/jsm/loaders/LDrawLoader.js | 2 +- examples/jsm/loaders/TDSLoader.js | 4 +- examples/jsm/loaders/TGALoader.js | 2 - examples/jsm/loaders/usd/USDCParser.js | 2 +- examples/jsm/misc/Volume.js | 1 - examples/jsm/misc/VolumeSlice.js | 1 - examples/jsm/objects/MarchingCubes.js | 2 +- examples/jsm/physics/AmmoPhysics.js | 2 +- examples/svg_sandbox.html | 2 - examples/webgl_gpgpu_water.html | 24 +- examples/webgl_multiple_views.html | 3 +- .../webgpu_camera_logarithmicdepthbuffer.html | 4 +- examples/webgpu_compute_reduce.html | 2 +- examples/webgpu_instance_uniform.html | 2 +- examples/webgpu_video_frame.html | 1 - examples/webxr_xr_haptics.html | 2 +- manual/examples/3dlut-base-cube-maker.html | 2 +- .../examples/offscreencanvas-w-fallback.html | 4 +- .../offscreencanvas-w-orbitcontrols.html | 10 +- .../examples/offscreencanvas-w-picking.html | 4 +- manual/examples/resources/editor-settings.js | 4 +- manual/examples/resources/editor.js | 6 +- manual/examples/resources/lessons-helper.js | 23 +- .../resources/lessons-worker-helper.js | 8 +- .../examples/resources/webgl-debug-helper.js | 2 +- manual/examples/responsive-editor.html | 2 +- manual/examples/shared-cubes.js | 2 +- manual/examples/shared-orbitcontrols.js | 2 +- manual/examples/shared-picking.js | 2 +- manual/index.html | 4 +- manual/resources/lesson.js | 3 +- manual/resources/moon-orbit.html | 207 +++++----- .../make-geo-picking-texture-ogc.html | 391 ++++++++++-------- .../make-geo-picking-texture-ogc.js | 3 - package.json | 1 - .../fonts/tabler-icons/tabler-icons.html | 28 +- test/e2e/deterministic-injection.js | 7 +- test/e2e/puppeteer.js | 31 +- test/unit/addons/curves/NURBSCurve.tests.js | 2 - .../addons/exporters/USDZExporter.tests.js | 2 - .../src/animation/AnimationAction.tests.js | 2 - .../unit/src/animation/AnimationClip.tests.js | 2 - .../src/animation/AnimationMixer.tests.js | 2 - .../animation/AnimationObjectGroup.tests.js | 6 +- .../src/animation/AnimationUtils.tests.js | 2 - .../unit/src/animation/KeyframeTrack.tests.js | 2 - .../src/animation/PropertyBinding.tests.js | 2 - .../unit/src/animation/PropertyMixer.tests.js | 2 - .../tracks/BooleanKeyframeTrack.tests.js | 2 - .../tracks/ColorKeyframeTrack.tests.js | 2 - .../tracks/NumberKeyframeTrack.tests.js | 2 - .../tracks/QuaternionKeyframeTrack.tests.js | 2 - .../tracks/StringKeyframeTrack.tests.js | 2 - .../tracks/VectorKeyframeTrack.tests.js | 2 - test/unit/src/audio/Audio.tests.js | 2 - test/unit/src/audio/AudioAnalyser.tests.js | 2 - test/unit/src/audio/AudioContext.tests.js | 2 - test/unit/src/audio/AudioListener.tests.js | 2 - test/unit/src/audio/PositionalAudio.tests.js | 2 - test/unit/src/cameras/ArrayCamera.tests.js | 2 - test/unit/src/cameras/Camera.tests.js | 2 - test/unit/src/cameras/CubeCamera.tests.js | 2 - .../src/cameras/OrthographicCamera.tests.js | 2 - .../src/cameras/PerspectiveCamera.tests.js | 2 - test/unit/src/cameras/StereoCamera.tests.js | 2 - test/unit/src/constants.tests.js | 2 - test/unit/src/core/BufferAttribute.tests.js | 1 - test/unit/src/core/BufferGeometry.tests.js | 2 - test/unit/src/core/Clock.tests.js | 2 - test/unit/src/core/EventDispatcher.tests.js | 2 - test/unit/src/core/GLBufferAttribute.tests.js | 2 - .../core/InstancedBufferAttribute.tests.js | 2 - .../src/core/InstancedBufferGeometry.tests.js | 2 - .../core/InstancedInterleavedBuffer.tests.js | 2 - test/unit/src/core/InterleavedBuffer.tests.js | 2 - .../core/InterleavedBufferAttribute.tests.js | 2 - test/unit/src/core/Layers.tests.js | 2 - test/unit/src/core/Object3D.tests.js | 2 - test/unit/src/core/Raycaster.tests.js | 2 - test/unit/src/core/RenderTarget.tests.js | 2 - test/unit/src/core/RenderTarget3D.tests.js | 2 - test/unit/src/core/Uniform.tests.js | 2 - test/unit/src/core/UniformsGroup.tests.js | 2 - test/unit/src/extras/DataUtils.tests.js | 2 - test/unit/src/extras/Earcut.tests.js | 2 - test/unit/src/extras/ImageUtils.tests.js | 2 - test/unit/src/extras/PMREMGenerator.tests.js | 2 - test/unit/src/extras/ShapeUtils.tests.js | 2 - test/unit/src/extras/core/Curve.tests.js | 2 - test/unit/src/extras/core/CurvePath.tests.js | 2 - .../src/extras/core/Interpolations.tests.js | 2 - test/unit/src/extras/core/Path.tests.js | 2 - test/unit/src/extras/core/Shape.tests.js | 2 - test/unit/src/extras/core/ShapePath.tests.js | 2 - test/unit/src/extras/curves/ArcCurve.tests.js | 2 - .../extras/curves/CatmullRomCurve3.tests.js | 2 - .../extras/curves/CubicBezierCurve.tests.js | 2 - .../extras/curves/CubicBezierCurve3.tests.js | 2 - .../src/extras/curves/EllipseCurve.tests.js | 2 - .../unit/src/extras/curves/LineCurve.tests.js | 2 - .../src/extras/curves/LineCurve3.tests.js | 2 - .../curves/QuadraticBezierCurve.tests.js | 2 - .../curves/QuadraticBezierCurve3.tests.js | 2 - .../src/extras/curves/SplineCurve.tests.js | 2 - test/unit/src/geometries/BoxGeometry.tests.js | 2 - .../src/geometries/CapsuleGeometry.tests.js | 2 - .../src/geometries/CircleGeometry.tests.js | 2 - .../unit/src/geometries/ConeGeometry.tests.js | 2 - .../src/geometries/CylinderGeometry.tests.js | 2 - .../geometries/DodecahedronGeometry.tests.js | 2 - .../src/geometries/EdgesGeometry.tests.js | 80 ---- .../src/geometries/ExtrudeGeometry.tests.js | 2 - .../geometries/IcosahedronGeometry.tests.js | 2 - .../src/geometries/LatheGeometry.tests.js | 2 - .../geometries/OctahedronGeometry.tests.js | 2 - .../src/geometries/PlaneGeometry.tests.js | 2 - .../geometries/PolyhedronGeometry.tests.js | 2 - .../unit/src/geometries/RingGeometry.tests.js | 2 - .../src/geometries/ShapeGeometry.tests.js | 2 - .../src/geometries/SphereGeometry.tests.js | 2 - .../geometries/TetrahedronGeometry.tests.js | 2 - .../src/geometries/TorusGeometry.tests.js | 2 - .../src/geometries/TorusKnotGeometry.tests.js | 2 - .../unit/src/geometries/TubeGeometry.tests.js | 2 - .../src/geometries/WireframeGeometry.tests.js | 2 - test/unit/src/helpers/ArrowHelper.tests.js | 2 - test/unit/src/helpers/AxesHelper.tests.js | 2 - test/unit/src/helpers/Box3Helper.tests.js | 2 - test/unit/src/helpers/BoxHelper.tests.js | 2 - test/unit/src/helpers/CameraHelper.tests.js | 2 - .../helpers/DirectionalLightHelper.tests.js | 2 - test/unit/src/helpers/GridHelper.tests.js | 2 - .../helpers/HemisphereLightHelper.tests.js | 2 - test/unit/src/helpers/PlaneHelper.tests.js | 2 - .../src/helpers/PointLightHelper.tests.js | 2 - .../unit/src/helpers/PolarGridHelper.tests.js | 2 - test/unit/src/helpers/SkeletonHelper.tests.js | 2 - .../unit/src/helpers/SpotLightHelper.tests.js | 2 - test/unit/src/lights/AmbientLight.tests.js | 2 - .../unit/src/lights/DirectionalLight.tests.js | 2 - .../lights/DirectionalLightShadow.tests.js | 2 - test/unit/src/lights/HemisphereLight.tests.js | 2 - test/unit/src/lights/Light.tests.js | 2 - test/unit/src/lights/LightProbe.tests.js | 2 - test/unit/src/lights/LightShadow.tests.js | 2 - test/unit/src/lights/PointLight.tests.js | 2 - .../unit/src/lights/PointLightShadow.tests.js | 2 - test/unit/src/lights/RectAreaLight.tests.js | 2 - test/unit/src/lights/SpotLight.tests.js | 2 - test/unit/src/lights/SpotLightShadow.tests.js | 2 - .../unit/src/loaders/AnimationLoader.tests.js | 2 - test/unit/src/loaders/AudioLoader.tests.js | 2 - .../src/loaders/BufferGeometryLoader.tests.js | 2 - test/unit/src/loaders/Cache.tests.js | 2 - .../loaders/CompressedTextureLoader.tests.js | 2 - .../src/loaders/CubeTextureLoader.tests.js | 2 - .../src/loaders/DataTextureLoader.tests.js | 2 - test/unit/src/loaders/FileLoader.tests.js | 2 - .../src/loaders/ImageBitmapLoader.tests.js | 2 - test/unit/src/loaders/ImageLoader.tests.js | 2 - test/unit/src/loaders/Loader.tests.js | 2 - test/unit/src/loaders/LoaderUtils.tests.js | 2 - test/unit/src/loaders/LoadingManager.tests.js | 2 - test/unit/src/loaders/MaterialLoader.tests.js | 2 - test/unit/src/loaders/ObjectLoader.tests.js | 2 - test/unit/src/loaders/TextureLoader.tests.js | 2 - .../src/materials/LineBasicMaterial.tests.js | 2 - .../src/materials/LineDashedMaterial.tests.js | 2 - test/unit/src/materials/Material.tests.js | 2 - .../src/materials/MeshBasicMaterial.tests.js | 2 - .../src/materials/MeshDepthMaterial.tests.js | 2 - .../materials/MeshDistanceMaterial.tests.js | 2 - .../materials/MeshLambertMaterial.tests.js | 2 - .../src/materials/MeshMatcapMaterial.tests.js | 2 - .../src/materials/MeshNormalMaterial.tests.js | 2 - .../src/materials/MeshPhongMaterial.tests.js | 2 - .../materials/MeshPhysicalMaterial.tests.js | 2 - .../materials/MeshStandardMaterial.tests.js | 2 - .../src/materials/MeshToonMaterial.tests.js | 2 - .../src/materials/PointsMaterial.tests.js | 2 - .../src/materials/RawShaderMaterial.tests.js | 2 - .../src/materials/ShaderMaterial.tests.js | 2 - .../src/materials/ShadowMaterial.tests.js | 2 - .../src/materials/SpriteMaterial.tests.js | 2 - test/unit/src/math/Box2.tests.js | 2 - test/unit/src/math/Box3.tests.js | 2 - test/unit/src/math/Color.tests.js | 2 - test/unit/src/math/ColorManagement.tests.js | 2 - test/unit/src/math/Cylindrical.tests.js | 2 - test/unit/src/math/Euler.tests.js | 2 - test/unit/src/math/Frustum.tests.js | 2 - test/unit/src/math/Interpolant.tests.js | 2 - test/unit/src/math/Line3.tests.js | 2 - test/unit/src/math/MathUtils.tests.js | 2 - test/unit/src/math/Matrix3.tests.js | 2 - test/unit/src/math/Matrix4.tests.js | 2 - test/unit/src/math/Plane.tests.js | 2 - test/unit/src/math/Quaternion.tests.js | 2 - test/unit/src/math/Ray.tests.js | 2 - test/unit/src/math/Sphere.tests.js | 2 - test/unit/src/math/Spherical.tests.js | 2 - .../src/math/SphericalHarmonics3.tests.js | 2 - test/unit/src/math/Triangle.tests.js | 2 - test/unit/src/math/Vector2.tests.js | 2 - test/unit/src/math/Vector3.tests.js | 2 - test/unit/src/math/Vector4.tests.js | 2 - .../interpolants/CubicInterpolant.tests.js | 2 - .../interpolants/DiscreteInterpolant.tests.js | 2 - .../interpolants/LinearInterpolant.tests.js | 2 - .../QuaternionLinearInterpolant.tests.js | 2 - test/unit/src/objects/BatchedMesh.tests.js | 2 - test/unit/src/objects/Bone.tests.js | 2 - test/unit/src/objects/Group.tests.js | 2 - test/unit/src/objects/InstancedMesh.tests.js | 2 - test/unit/src/objects/LOD.tests.js | 2 - test/unit/src/objects/Line.tests.js | 2 - test/unit/src/objects/LineLoop.tests.js | 2 - test/unit/src/objects/LineSegments.tests.js | 2 - test/unit/src/objects/Mesh.tests.js | 2 - test/unit/src/objects/Points.tests.js | 2 - test/unit/src/objects/Skeleton.tests.js | 2 - test/unit/src/objects/SkinnedMesh.tests.js | 2 - test/unit/src/objects/Sprite.tests.js | 2 - .../renderers/WebGL3DRenderTarget.tests.js | 2 - .../renderers/WebGLArrayRenderTarget.tests.js | 2 - .../renderers/WebGLCubeRenderTarget.tests.js | 2 - .../src/renderers/WebGLRenderTarget.tests.js | 2 - .../unit/src/renderers/WebGLRenderer.tests.js | 2 - .../renderers/shaders/ShaderChunk.tests.js | 2 - .../src/renderers/shaders/ShaderLib.tests.js | 2 - .../renderers/shaders/UniformsLib.tests.js | 2 - .../renderers/shaders/UniformsUtils.tests.js | 2 - .../renderers/webgl/WebGLAttributes.tests.js | 2 - .../renderers/webgl/WebGLBackground.tests.js | 2 - .../webgl/WebGLBufferRenderer.tests.js | 2 - .../webgl/WebGLCapabilities.tests.js | 2 - .../renderers/webgl/WebGLClipping.tests.js | 2 - .../renderers/webgl/WebGLExtensions.tests.js | 2 - .../renderers/webgl/WebGLGeometries.tests.js | 2 - .../webgl/WebGLIndexedBufferRenderer.tests.js | 2 - .../src/renderers/webgl/WebGLLights.tests.js | 2 - .../webgl/WebGLMorphtargets.tests.js | 2 - .../src/renderers/webgl/WebGLObjects.tests.js | 2 - .../src/renderers/webgl/WebGLProgram.tests.js | 2 - .../renderers/webgl/WebGLPrograms.tests.js | 2 - .../renderers/webgl/WebGLProperties.tests.js | 2 - .../renderers/webgl/WebGLRenderLists.tests.js | 2 - .../src/renderers/webgl/WebGLShader.tests.js | 2 - .../renderers/webgl/WebGLShadowMap.tests.js | 2 - .../src/renderers/webgl/WebGLState.tests.js | 2 - .../renderers/webgl/WebGLTextures.tests.js | 2 - .../renderers/webgl/WebGLUniforms.tests.js | 2 - .../src/renderers/webgl/WebGLUtils.tests.js | 2 - test/unit/src/scenes/Fog.tests.js | 2 - test/unit/src/scenes/FogExp2.tests.js | 2 - test/unit/src/scenes/Scene.tests.js | 2 - test/unit/src/textures/CanvasTexture.tests.js | 2 - .../textures/CompressedArrayTexture.tests.js | 2 - .../src/textures/CompressedTexture.tests.js | 2 - test/unit/src/textures/CubeTexture.tests.js | 2 - test/unit/src/textures/Data3DTexture.tests.js | 2 - .../src/textures/DataArrayTexture.tests.js | 2 - test/unit/src/textures/DataTexture.tests.js | 2 - test/unit/src/textures/DepthTexture.tests.js | 2 - .../src/textures/FramebufferTexture.tests.js | 2 - test/unit/src/textures/Source.tests.js | 2 - test/unit/src/textures/Texture.tests.js | 2 - test/unit/src/textures/VideoTexture.tests.js | 2 - test/unit/src/utils.tests.js | 2 - test/unit/utils/qunit-utils.js | 2 - utils/docs/template/publish.js | 6 +- utils/packLDrawModel.mjs | 10 +- 284 files changed, 476 insertions(+), 931 deletions(-) diff --git a/editor/index.html b/editor/index.html index 21768496d07ee1..dde921d7faebc7 100644 --- a/editor/index.html +++ b/editor/index.html @@ -245,7 +245,7 @@ navigator.serviceWorker.register( 'sw.js' ); - } catch ( error ) { + } catch ( error ) { // eslint-disable-line no-unused-vars } diff --git a/editor/js/Script.js b/editor/js/Script.js index fca8bae7c77d18..93101809d09414 100644 --- a/editor/js/Script.js +++ b/editor/js/Script.js @@ -212,7 +212,7 @@ function Script( editor ) { jsonlint.parse( string ); - } catch ( error ) { + } catch ( error ) { // eslint-disable-line no-unused-vars // ignore failed error recovery @@ -486,7 +486,7 @@ function Script( editor ) { } ); - signals.materialChanged.add( function ( object, slot ) { + signals.materialChanged.add( function ( object/*, slot */ ) { if ( object !== currentObject ) return; diff --git a/editor/js/Selector.js b/editor/js/Selector.js index 18bcc9dd7320c5..54f348cb0581df 100644 --- a/editor/js/Selector.js +++ b/editor/js/Selector.js @@ -42,7 +42,7 @@ class Selector { // Cycle through objects if the first one is already selected - let index = objects.indexOf( editor.selected ); + const index = objects.indexOf( editor.selected ); if ( index !== - 1 && index < objects.length - 1 ) { diff --git a/editor/js/Sidebar.Material.js b/editor/js/Sidebar.Material.js index a0bbd8ee182367..f46923174cdf17 100644 --- a/editor/js/Sidebar.Material.js +++ b/editor/js/Sidebar.Material.js @@ -409,7 +409,7 @@ function SidebarMaterial( editor ) { materialUserData.dom.classList.add( 'success' ); materialUserData.dom.classList.remove( 'fail' ); - } catch ( error ) { + } catch ( error ) { // eslint-disable-line no-unused-vars materialUserData.dom.classList.remove( 'success' ); materialUserData.dom.classList.add( 'fail' ); @@ -439,7 +439,7 @@ function SidebarMaterial( editor ) { output = JSON.stringify( output, null, '\t' ); output = output.replace( /[\n\t]+([\d\.e\-\[\]]+)/g, '$1' ); - } catch ( e ) { + } catch ( error ) { // eslint-disable-line no-unused-vars output = JSON.stringify( output ); diff --git a/editor/js/Sidebar.Object.js b/editor/js/Sidebar.Object.js index 18f4469133c3c3..2a5c398dce0743 100644 --- a/editor/js/Sidebar.Object.js +++ b/editor/js/Sidebar.Object.js @@ -386,7 +386,7 @@ function SidebarObject( editor ) { objectUserData.dom.classList.add( 'success' ); objectUserData.dom.classList.remove( 'fail' ); - } catch ( error ) { + } catch ( error ) { // eslint-disable-line no-unused-vars objectUserData.dom.classList.remove( 'success' ); objectUserData.dom.classList.add( 'fail' ); @@ -415,7 +415,7 @@ function SidebarObject( editor ) { output = JSON.stringify( output, null, '\t' ); output = output.replace( /[\n\t]+([\d\.e\-\[\]]+)/g, '$1' ); - } catch ( e ) { + } catch ( error ) { // eslint-disable-line no-unused-vars output = JSON.stringify( output ); diff --git a/editor/sw.js b/editor/sw.js index bcd084ca100c09..1b797a999f0301 100644 --- a/editor/sw.js +++ b/editor/sw.js @@ -239,7 +239,7 @@ self.addEventListener( 'install', async function () { await cache.add( asset ); - } catch { + } catch ( error ) { // eslint-disable-line no-unused-vars console.warn( '[SW] Couldn\'t cache:', asset ); @@ -284,7 +284,7 @@ async function networkFirst( request ) { return response; - } catch { + } catch ( error ) { // eslint-disable-line no-unused-vars const cachedResponse = await caches.match( request ); diff --git a/eslint.config.js b/eslint.config.js index 02ba77a685d045..b78daf792703be 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -20,7 +20,8 @@ export default [ '**/3rdparty/**', '**/shapefile.js', '**/vendor/**', - '**/fuse/**' + '**/fuse/**', + '**/template/static/**', ] }, @@ -107,6 +108,9 @@ export default [ 'getter-return': 'off', 'no-async-promise-executor': 'off', 'no-empty': 'off', + 'no-fallthrough': 'off', + 'no-prototype-builtins': 'off', + 'no-loss-of-precision': 'off', // 'jsdoc/check-types': 'error', 'jsdoc/require-returns': 'off', diff --git a/examples/jsm/capabilities/WebGL.js b/examples/jsm/capabilities/WebGL.js index f1827999b90a53..fa9e746f0fef63 100644 --- a/examples/jsm/capabilities/WebGL.js +++ b/examples/jsm/capabilities/WebGL.js @@ -18,7 +18,7 @@ class WebGL { const canvas = document.createElement( 'canvas' ); return !! ( window.WebGL2RenderingContext && canvas.getContext( 'webgl2' ) ); - } catch ( e ) { + } catch ( e ) { // eslint-disable-line no-unused-vars return false; @@ -42,7 +42,7 @@ class WebGL { ctx.drawingBufferColorSpace = colorSpace; return ctx.drawingBufferColorSpace === colorSpace; // deepscan-disable-line SAME_OPERAND_VALUE - } catch ( e ) { + } catch ( e ) { // eslint-disable-line no-unused-vars return false; diff --git a/examples/jsm/helpers/ViewHelper.js b/examples/jsm/helpers/ViewHelper.js index 653f342006aa82..d340ee0607cd5b 100644 --- a/examples/jsm/helpers/ViewHelper.js +++ b/examples/jsm/helpers/ViewHelper.js @@ -378,7 +378,7 @@ class ViewHelper extends Object3D { result = typeof OffscreenCanvas !== 'undefined' && ( new OffscreenCanvas( 1, 1 ).getContext( '2d' ) ) !== null; - } catch ( err ) { + } catch ( err ) { // eslint-disable-line no-unused-vars // Ignore any errors diff --git a/examples/jsm/loaders/3DMLoader.js b/examples/jsm/loaders/3DMLoader.js index 08dcee508d297b..58666a1da0a0da 100644 --- a/examples/jsm/loaders/3DMLoader.js +++ b/examples/jsm/loaders/3DMLoader.js @@ -23,7 +23,8 @@ import { SpotLight, Sprite, SpriteMaterial, - TextureLoader + TextureLoader, + EquirectangularReflectionMapping } from 'three'; import { EXRLoader } from '../loaders/EXRLoader.js'; @@ -507,7 +508,7 @@ class Rhino3dmLoader extends Loader { new EXRLoader().load( renderEnvironment.image, function ( texture ) { - texture.mapping = THREE.EquirectangularReflectionMapping; + texture.mapping = EquirectangularReflectionMapping; mat.envMap = texture; } ); @@ -697,7 +698,7 @@ class Rhino3dmLoader extends Loader { geometry = loader.parse( obj.geometry ); - if ( geometry.attributes.hasOwnProperty( 'color' ) ) { + if ( geometry.hasAttribute( 'color' ) ) { material = new PointsMaterial( { vertexColors: true, sizeAttenuation: false, size: 2 } ); @@ -740,7 +741,7 @@ class Rhino3dmLoader extends Loader { } - if ( geometry.attributes.hasOwnProperty( 'color' ) ) { + if ( geometry.hasAttribute( 'color' ) ) { mat.vertexColors = true; diff --git a/examples/jsm/loaders/FBXLoader.js b/examples/jsm/loaders/FBXLoader.js index 3933763bd8dbfa..9fa199384752af 100644 --- a/examples/jsm/loaders/FBXLoader.js +++ b/examples/jsm/loaders/FBXLoader.js @@ -1615,11 +1615,9 @@ class GeometryParser { case 'Mesh': return this.parseMeshGeometry( relationships, geoNode, deformers ); - break; case 'NurbsCurve': return this.parseNurbsGeometry( geoNode ); - break; } diff --git a/examples/jsm/loaders/HDRLoader.js b/examples/jsm/loaders/HDRLoader.js index 3a1ada92b19400..fa39973c893d82 100644 --- a/examples/jsm/loaders/HDRLoader.js +++ b/examples/jsm/loaders/HDRLoader.js @@ -424,7 +424,6 @@ class HDRLoader extends DataTextureLoader { default: throw new Error( 'THREE.HDRLoader: Unsupported type: ' + this.type ); - break; } diff --git a/examples/jsm/loaders/LDrawLoader.js b/examples/jsm/loaders/LDrawLoader.js index 087ddf6b9703a9..77dbd7a7558327 100644 --- a/examples/jsm/loaders/LDrawLoader.js +++ b/examples/jsm/loaders/LDrawLoader.js @@ -636,7 +636,7 @@ class LDrawParsedCache { const text = await fileLoader.loadAsync( subobjectURL ); return text; - } catch ( _ ) { + } catch ( _ ) { // eslint-disable-line no-unused-vars continue; diff --git a/examples/jsm/loaders/TDSLoader.js b/examples/jsm/loaders/TDSLoader.js index 00ab3d24932fd5..a8120a154bdb3a 100644 --- a/examples/jsm/loaders/TDSLoader.js +++ b/examples/jsm/loaders/TDSLoader.js @@ -684,11 +684,9 @@ class TDSLoader extends Loader { case INT_PERCENTAGE: return ( subChunk.readShort( ) / 100 ); - break; case FLOAT_PERCENTAGE: return subChunk.readFloat( ); - break; default: this.debugMessage( ' Unknown percentage chunk: ' + subChunk.hexId ); @@ -780,7 +778,7 @@ class Chunk { this.position += next.size; return next; - } catch ( e ) { + } catch ( e ) { // eslint-disable-line no-unused-vars this.debugMessage( 'Unable to read chunk at ' + this.position ); return null; diff --git a/examples/jsm/loaders/TGALoader.js b/examples/jsm/loaders/TGALoader.js index 14fd3f0ff0287a..6b729d74c6a3a8 100644 --- a/examples/jsm/loaders/TGALoader.js +++ b/examples/jsm/loaders/TGALoader.js @@ -389,7 +389,6 @@ class TGALoader extends DataTextureLoader { default: throw new Error( 'THREE.TGALoader: Format not supported.' ); - break; } @@ -415,7 +414,6 @@ class TGALoader extends DataTextureLoader { default: throw new Error( 'THREE.TGALoader: Format not supported.' ); - break; } diff --git a/examples/jsm/loaders/usd/USDCParser.js b/examples/jsm/loaders/usd/USDCParser.js index 0cfb9275582939..bbde70cfe3fec7 100644 --- a/examples/jsm/loaders/usd/USDCParser.js +++ b/examples/jsm/loaders/usd/USDCParser.js @@ -4,7 +4,7 @@ import { class USDCParser { - parse( buffer ) { + parse( /* buffer */ ) { // TODO diff --git a/examples/jsm/misc/Volume.js b/examples/jsm/misc/Volume.js index 355ed7ceb03a7b..1cf75877261471 100644 --- a/examples/jsm/misc/Volume.js +++ b/examples/jsm/misc/Volume.js @@ -123,7 +123,6 @@ class Volume { case 'uint64' : case 'uint64_t' : throw new Error( 'Error in Volume constructor : this type is not supported in JavaScript' ); - break; case 'Float32' : case 'float32' : case 'float' : diff --git a/examples/jsm/misc/VolumeSlice.js b/examples/jsm/misc/VolumeSlice.js index be0afbc19aa9db..ff3a07da024f20 100644 --- a/examples/jsm/misc/VolumeSlice.js +++ b/examples/jsm/misc/VolumeSlice.js @@ -54,7 +54,6 @@ class VolumeSlice { index = value; slice.geometryNeedsUpdate = true; - return index; } } ); diff --git a/examples/jsm/objects/MarchingCubes.js b/examples/jsm/objects/MarchingCubes.js index 29a405be3eae30..48dad15caeaeaa 100644 --- a/examples/jsm/objects/MarchingCubes.js +++ b/examples/jsm/objects/MarchingCubes.js @@ -560,7 +560,7 @@ class MarchingCubes extends Mesh { ) : new Color( colors ); - } catch ( err ) { + } catch ( err ) { // eslint-disable-line no-unused-vars ballColor = new Color( ballx, bally, ballz ); diff --git a/examples/jsm/physics/AmmoPhysics.js b/examples/jsm/physics/AmmoPhysics.js index e2da3ed4fad646..6644fc001dbc9a 100644 --- a/examples/jsm/physics/AmmoPhysics.js +++ b/examples/jsm/physics/AmmoPhysics.js @@ -23,7 +23,7 @@ async function AmmoPhysics() { } - const AmmoLib = await Ammo(); // eslint-disable-line no-undef + const AmmoLib = await Ammo(); const frameRate = 60; diff --git a/examples/svg_sandbox.html b/examples/svg_sandbox.html index f86faf753d5099..e1b3fb387607a2 100644 --- a/examples/svg_sandbox.html +++ b/examples/svg_sandbox.html @@ -253,8 +253,6 @@ function render() { - const time = Date.now() * 0.0002; - group.rotation.x += 0.01; controls.update(); diff --git a/examples/webgl_gpgpu_water.html b/examples/webgl_gpgpu_water.html index fc3200e2bf07d7..eb90195e5f72c0 100644 --- a/examples/webgl_gpgpu_water.html +++ b/examples/webgl_gpgpu_water.html @@ -174,7 +174,7 @@ let meshRay; let gpuCompute; let heightmapVariable; - let smoothShader; + // let smoothShader; let readWaterLevelShader; let readWaterLevelRenderTarget; let readWaterLevelImage; @@ -362,7 +362,7 @@ if ( error !== null ) console.error( error ); // Create compute shader to smooth the water surface and velocity - smoothShader = gpuCompute.createShaderMaterial( document.getElementById( 'smoothFragmentShader' ).textContent, { smoothTexture: { value: null } } ); + //smoothShader = gpuCompute.createShaderMaterial( document.getElementById( 'smoothFragmentShader' ).textContent, { smoothTexture: { value: null } } ); // Create compute shader to read water level readWaterLevelShader = gpuCompute.createShaderMaterial( document.getElementById( 'readWaterLevelFragmentShader' ).textContent, { @@ -460,22 +460,22 @@ } - function smoothWater() { + // function smoothWater() { - const currentRenderTarget = gpuCompute.getCurrentRenderTarget( heightmapVariable ); - const alternateRenderTarget = gpuCompute.getAlternateRenderTarget( heightmapVariable ); + // const currentRenderTarget = gpuCompute.getCurrentRenderTarget( heightmapVariable ); + // const alternateRenderTarget = gpuCompute.getAlternateRenderTarget( heightmapVariable ); - for ( let i = 0; i < 10; i ++ ) { + // for ( let i = 0; i < 10; i ++ ) { - smoothShader.uniforms[ 'smoothTexture' ].value = currentRenderTarget.texture; - gpuCompute.doRenderTarget( smoothShader, alternateRenderTarget ); + // smoothShader.uniforms[ 'smoothTexture' ].value = currentRenderTarget.texture; + // gpuCompute.doRenderTarget( smoothShader, alternateRenderTarget ); - smoothShader.uniforms[ 'smoothTexture' ].value = alternateRenderTarget.texture; - gpuCompute.doRenderTarget( smoothShader, currentRenderTarget ); + // smoothShader.uniforms[ 'smoothTexture' ].value = alternateRenderTarget.texture; + // gpuCompute.doRenderTarget( smoothShader, currentRenderTarget ); - } + // } - } + // } function createducks() { diff --git a/examples/webgl_multiple_views.html b/examples/webgl_multiple_views.html index 44e804068cc71c..f9144492a40fde 100644 --- a/examples/webgl_multiple_views.html +++ b/examples/webgl_multiple_views.html @@ -30,7 +30,7 @@ let scene, renderer; - let mouseX = 0, mouseY = 0; + let mouseX = 0; let windowWidth, windowHeight; @@ -222,7 +222,6 @@ function onDocumentMouseMove( event ) { mouseX = ( event.clientX - windowWidth / 2 ); - mouseY = ( event.clientY - windowHeight / 2 ); } diff --git a/examples/webgpu_camera_logarithmicdepthbuffer.html b/examples/webgpu_camera_logarithmicdepthbuffer.html index 473083392b2bbe..d43b6f132f8b8d 100644 --- a/examples/webgpu_camera_logarithmicdepthbuffer.html +++ b/examples/webgpu_camera_logarithmicdepthbuffer.html @@ -100,7 +100,7 @@ let zoompos = - 100, minzoomspeed = .015; let zoomspeed = minzoomspeed; - let container, border; + let border; const objects = {}; // Generate a number of text labels, from 1µm in size up to 100,000,000 light years @@ -128,8 +128,6 @@ async function init() { - container = document.getElementById( 'container' ); - const loader = new FontLoader(); const font = await loader.loadAsync( 'fonts/helvetiker_regular.typeface.json' ); diff --git a/examples/webgpu_compute_reduce.html b/examples/webgpu_compute_reduce.html index d14ac0994fd439..2c61c238dad8ac 100644 --- a/examples/webgpu_compute_reduce.html +++ b/examples/webgpu_compute_reduce.html @@ -929,7 +929,7 @@

Subgroup Reduction Explanation

const scene = new THREE.Scene(); - const array = new Uint32Array( Array.from( { length: size }, ( _, i ) => { + const array = new Uint32Array( Array.from( { length: size }, () => { return 1; diff --git a/examples/webgpu_instance_uniform.html b/examples/webgpu_instance_uniform.html index f10021f6dbc020..d64ecdffaace37 100644 --- a/examples/webgpu_instance_uniform.html +++ b/examples/webgpu_instance_uniform.html @@ -34,7 +34,7 @@ diff --git a/test/e2e/deterministic-injection.js b/test/e2e/deterministic-injection.js index 747e6bcc68790c..14def3a2e643b4 100644 --- a/test/e2e/deterministic-injection.js +++ b/test/e2e/deterministic-injection.js @@ -16,7 +16,6 @@ window.performance._now = performance.now; - let frameId = 0; const now = () => 0; // frameId * 16; window.Date.now = now; window.Date.prototype.getTime = now; @@ -29,7 +28,7 @@ window.requestAnimationFrame = function ( cb ) { - if ( window._renderFinished === true ) return + if ( window._renderFinished === true ) return; if ( window._renderStarted === false ) { @@ -63,11 +62,11 @@ this.load(); play.call( this ); - RAF( renew ); + RAF( renew ); // eslint-disable-line no-undef } - RAF( renew ); + RAF( renew ); // eslint-disable-line no-undef }; diff --git a/test/e2e/puppeteer.js b/test/e2e/puppeteer.js index 827e0b68a8cb69..b625319f463dfe 100644 --- a/test/e2e/puppeteer.js +++ b/test/e2e/puppeteer.js @@ -131,7 +131,7 @@ process.on( 'SIGINT', async () => { await browser.close(); - } catch {} + } catch ( e ) {} // eslint-disable-line no-unused-vars } @@ -144,8 +144,17 @@ async function main() { /* Create output directory */ - try { await fs.rm( 'test/e2e/output-screenshots', { recursive: true, force: true } ); } catch {} - try { await fs.mkdir( 'test/e2e/output-screenshots' ); } catch {} + try { + + await fs.rm( 'test/e2e/output-screenshots', { recursive: true, force: true } ); + + } catch ( e ) {} // eslint-disable-line no-unused-vars + + try { + + await fs.mkdir( 'test/e2e/output-screenshots' ); + + } catch ( e ) {} // eslint-disable-line no-unused-vars /* Find files */ @@ -306,11 +315,19 @@ async function preparePage( page, injection, builds, errorMessages ) { } const args = await Promise.all( msg.args().map( async arg => { + try { + return await arg.executionContext().evaluate( arg => arg instanceof Error ? arg.message : arg, arg ); - } catch ( e ) { // Execution context might have been already destroyed + + } catch ( e ) { // eslint-disable-line no-unused-vars + + // Execution context might have been already destroyed + return arg; + } + } ) ); let text = args.join( ' ' ); // https://github.com/puppeteer/puppeteer/issues/3397#issuecomment-434970058 @@ -360,7 +377,7 @@ async function preparePage( page, injection, builds, errorMessages ) { } - } catch {} + } catch ( e ) {} // eslint-disable-line no-unused-vars } ); @@ -494,7 +511,7 @@ async function makeAttempt( page, failedScreenshots, cleanPage, isMakeScreenshot expected = ( await Jimp.read( `examples/screenshots/${ file }.jpg`, { quality: jpgQuality } ) ); - } catch { + } catch ( e ) { // eslint-disable-line no-unused-vars await screenshot.write( `test/e2e/output-screenshots/${ file }-actual.jpg` ); throw new Error( `Screenshot does not exist: ${ file }` ); @@ -513,7 +530,7 @@ async function makeAttempt( page, failedScreenshots, cleanPage, isMakeScreenshot alpha: 0.2 } ); - } catch { + } catch ( e ) { // eslint-disable-line no-unused-vars await screenshot.write( `test/e2e/output-screenshots/${ file }-actual.jpg` ); await expected.write( `test/e2e/output-screenshots/${ file }-expected.jpg` ); diff --git a/test/unit/addons/curves/NURBSCurve.tests.js b/test/unit/addons/curves/NURBSCurve.tests.js index 0a114ef6fdfd35..567459af809925 100644 --- a/test/unit/addons/curves/NURBSCurve.tests.js +++ b/test/unit/addons/curves/NURBSCurve.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { NURBSCurve } from '../../../../examples/jsm/curves/NURBSCurve.js'; import { MathUtils } from '../../../../src/math/MathUtils.js'; import { Vector4 } from '../../../../src/math/Vector4.js'; diff --git a/test/unit/addons/exporters/USDZExporter.tests.js b/test/unit/addons/exporters/USDZExporter.tests.js index 472d7f2c428118..2f516ae674112e 100644 --- a/test/unit/addons/exporters/USDZExporter.tests.js +++ b/test/unit/addons/exporters/USDZExporter.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { USDZExporter } from '../../../../examples/jsm/exporters/USDZExporter.js'; import { USDLoader } from '../../../../examples/jsm/loaders/USDLoader.js'; import { diff --git a/test/unit/src/animation/AnimationAction.tests.js b/test/unit/src/animation/AnimationAction.tests.js index fe3ffd3e5349fe..60661d96fdea24 100644 --- a/test/unit/src/animation/AnimationAction.tests.js +++ b/test/unit/src/animation/AnimationAction.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { AnimationAction } from '../../../../src/animation/AnimationAction.js'; import { AnimationMixer } from '../../../../src/animation/AnimationMixer.js'; diff --git a/test/unit/src/animation/AnimationClip.tests.js b/test/unit/src/animation/AnimationClip.tests.js index b33e3cb42ad33c..08c05e35c85c37 100644 --- a/test/unit/src/animation/AnimationClip.tests.js +++ b/test/unit/src/animation/AnimationClip.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { AnimationClip } from '../../../../src/animation/AnimationClip.js'; export default QUnit.module( 'Animation', () => { diff --git a/test/unit/src/animation/AnimationMixer.tests.js b/test/unit/src/animation/AnimationMixer.tests.js index 1aaae3d3e441aa..6be0fe8d799d1f 100644 --- a/test/unit/src/animation/AnimationMixer.tests.js +++ b/test/unit/src/animation/AnimationMixer.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { AnimationMixer } from '../../../../src/animation/AnimationMixer.js'; import { EventDispatcher } from '../../../../src/core/EventDispatcher.js'; diff --git a/test/unit/src/animation/AnimationObjectGroup.tests.js b/test/unit/src/animation/AnimationObjectGroup.tests.js index be3c9976b1d90d..9c16cad39ee19f 100644 --- a/test/unit/src/animation/AnimationObjectGroup.tests.js +++ b/test/unit/src/animation/AnimationObjectGroup.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { AnimationObjectGroup } from '../../../../src/animation/AnimationObjectGroup.js'; import { Object3D } from '../../../../src/core/Object3D.js'; @@ -50,14 +48,14 @@ export default QUnit.module( 'Animation', () => { var rootNodes = [], pathsOk = true, nodesOk = true; - for ( var i = group.nCachedObjects_, n = bindings.length; i !== n; ++ i ) { + for ( let i = group.nCachedObjects_, n = bindings.length; i !== n; ++ i ) { if ( bindings[ i ].path !== path ) pathsOk = false; rootNodes.push( bindings[ i ].rootNode ); } - for ( var i = 0, n = roots.length; i !== n; ++ i ) { + for ( let i = 0, n = roots.length; i !== n; ++ i ) { if ( rootNodes.indexOf( roots[ i ] ) === - 1 ) nodesOk = false; diff --git a/test/unit/src/animation/AnimationUtils.tests.js b/test/unit/src/animation/AnimationUtils.tests.js index 34fc34d9a5a560..462802263c1f9a 100644 --- a/test/unit/src/animation/AnimationUtils.tests.js +++ b/test/unit/src/animation/AnimationUtils.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import * as AnimationUtils from '../../../../src/animation/AnimationUtils.js'; export default QUnit.module( 'Animation', () => { diff --git a/test/unit/src/animation/KeyframeTrack.tests.js b/test/unit/src/animation/KeyframeTrack.tests.js index fb915e47671fe3..51fe25636184d3 100644 --- a/test/unit/src/animation/KeyframeTrack.tests.js +++ b/test/unit/src/animation/KeyframeTrack.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { NumberKeyframeTrack } from '../../../../src/animation/tracks/NumberKeyframeTrack.js'; import { KeyframeTrack } from '../../../../src/animation/KeyframeTrack.js'; diff --git a/test/unit/src/animation/PropertyBinding.tests.js b/test/unit/src/animation/PropertyBinding.tests.js index ecf0c4ff974d8d..a02b6e9bee0c53 100644 --- a/test/unit/src/animation/PropertyBinding.tests.js +++ b/test/unit/src/animation/PropertyBinding.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PropertyBinding } from '../../../../src/animation/PropertyBinding.js'; import { BoxGeometry } from '../../../../src/geometries/BoxGeometry.js'; diff --git a/test/unit/src/animation/PropertyMixer.tests.js b/test/unit/src/animation/PropertyMixer.tests.js index 0e6e007cb8a5d9..e8fe6b3b5a3112 100644 --- a/test/unit/src/animation/PropertyMixer.tests.js +++ b/test/unit/src/animation/PropertyMixer.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { PropertyMixer } from '../../../../src/animation/PropertyMixer.js'; export default QUnit.module( 'Animation', () => { diff --git a/test/unit/src/animation/tracks/BooleanKeyframeTrack.tests.js b/test/unit/src/animation/tracks/BooleanKeyframeTrack.tests.js index 8b56fbdfd457d0..28dfb0ce8fe842 100644 --- a/test/unit/src/animation/tracks/BooleanKeyframeTrack.tests.js +++ b/test/unit/src/animation/tracks/BooleanKeyframeTrack.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { BooleanKeyframeTrack } from '../../../../../src/animation/tracks/BooleanKeyframeTrack.js'; import { KeyframeTrack } from '../../../../../src/animation/KeyframeTrack.js'; diff --git a/test/unit/src/animation/tracks/ColorKeyframeTrack.tests.js b/test/unit/src/animation/tracks/ColorKeyframeTrack.tests.js index fc26cf683a2665..38f338f6dfce64 100644 --- a/test/unit/src/animation/tracks/ColorKeyframeTrack.tests.js +++ b/test/unit/src/animation/tracks/ColorKeyframeTrack.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ColorKeyframeTrack } from '../../../../../src/animation/tracks/ColorKeyframeTrack.js'; import { KeyframeTrack } from '../../../../../src/animation/KeyframeTrack.js'; diff --git a/test/unit/src/animation/tracks/NumberKeyframeTrack.tests.js b/test/unit/src/animation/tracks/NumberKeyframeTrack.tests.js index 5c6dfc524023fd..416fe650fdbdf7 100644 --- a/test/unit/src/animation/tracks/NumberKeyframeTrack.tests.js +++ b/test/unit/src/animation/tracks/NumberKeyframeTrack.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { NumberKeyframeTrack } from '../../../../../src/animation/tracks/NumberKeyframeTrack.js'; import { KeyframeTrack } from '../../../../../src/animation/KeyframeTrack.js'; diff --git a/test/unit/src/animation/tracks/QuaternionKeyframeTrack.tests.js b/test/unit/src/animation/tracks/QuaternionKeyframeTrack.tests.js index 1503c9276317d0..adb19f6fe39fd3 100644 --- a/test/unit/src/animation/tracks/QuaternionKeyframeTrack.tests.js +++ b/test/unit/src/animation/tracks/QuaternionKeyframeTrack.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { QuaternionKeyframeTrack } from '../../../../../src/animation/tracks/QuaternionKeyframeTrack.js'; import { KeyframeTrack } from '../../../../../src/animation/KeyframeTrack.js'; diff --git a/test/unit/src/animation/tracks/StringKeyframeTrack.tests.js b/test/unit/src/animation/tracks/StringKeyframeTrack.tests.js index 7a54ca08f20451..2bb234bb067ceb 100644 --- a/test/unit/src/animation/tracks/StringKeyframeTrack.tests.js +++ b/test/unit/src/animation/tracks/StringKeyframeTrack.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { StringKeyframeTrack } from '../../../../../src/animation/tracks/StringKeyframeTrack.js'; import { KeyframeTrack } from '../../../../../src/animation/KeyframeTrack.js'; diff --git a/test/unit/src/animation/tracks/VectorKeyframeTrack.tests.js b/test/unit/src/animation/tracks/VectorKeyframeTrack.tests.js index 75aa3b86633bb5..47c5be2ae4e548 100644 --- a/test/unit/src/animation/tracks/VectorKeyframeTrack.tests.js +++ b/test/unit/src/animation/tracks/VectorKeyframeTrack.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { VectorKeyframeTrack } from '../../../../../src/animation/tracks/VectorKeyframeTrack.js'; import { KeyframeTrack } from '../../../../../src/animation/KeyframeTrack.js'; diff --git a/test/unit/src/audio/Audio.tests.js b/test/unit/src/audio/Audio.tests.js index b2cfd1202625dc..15307d68470bcb 100644 --- a/test/unit/src/audio/Audio.tests.js +++ b/test/unit/src/audio/Audio.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Audio } from '../../../../src/audio/Audio.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/audio/AudioAnalyser.tests.js b/test/unit/src/audio/AudioAnalyser.tests.js index 9719788a36b539..1c0110d5d202ab 100644 --- a/test/unit/src/audio/AudioAnalyser.tests.js +++ b/test/unit/src/audio/AudioAnalyser.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { AudioAnalyser } from '../../../../src/audio/AudioAnalyser.js'; export default QUnit.module( 'Audios', () => { diff --git a/test/unit/src/audio/AudioContext.tests.js b/test/unit/src/audio/AudioContext.tests.js index bcc9c794fb742d..b4ea690a785c72 100644 --- a/test/unit/src/audio/AudioContext.tests.js +++ b/test/unit/src/audio/AudioContext.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { AudioContext } from '../../../../src/audio/AudioContext.js'; export default QUnit.module( 'Audios', () => { diff --git a/test/unit/src/audio/AudioListener.tests.js b/test/unit/src/audio/AudioListener.tests.js index c203f72af4a9ee..0cd04a48802f41 100644 --- a/test/unit/src/audio/AudioListener.tests.js +++ b/test/unit/src/audio/AudioListener.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { AudioListener } from '../../../../src/audio/AudioListener.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/audio/PositionalAudio.tests.js b/test/unit/src/audio/PositionalAudio.tests.js index d1207f3fd2208a..141a31a956a68f 100644 --- a/test/unit/src/audio/PositionalAudio.tests.js +++ b/test/unit/src/audio/PositionalAudio.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PositionalAudio } from '../../../../src/audio/PositionalAudio.js'; import { Audio } from '../../../../src/audio/Audio.js'; diff --git a/test/unit/src/cameras/ArrayCamera.tests.js b/test/unit/src/cameras/ArrayCamera.tests.js index 8ee7abadd89049..132977b501e0a9 100644 --- a/test/unit/src/cameras/ArrayCamera.tests.js +++ b/test/unit/src/cameras/ArrayCamera.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ArrayCamera } from '../../../../src/cameras/ArrayCamera.js'; import { PerspectiveCamera } from '../../../../src/cameras/PerspectiveCamera.js'; diff --git a/test/unit/src/cameras/Camera.tests.js b/test/unit/src/cameras/Camera.tests.js index 75ffd1c9c54879..2fbee2bfe4ea1e 100644 --- a/test/unit/src/cameras/Camera.tests.js +++ b/test/unit/src/cameras/Camera.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Camera } from '../../../../src/cameras/Camera.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; diff --git a/test/unit/src/cameras/CubeCamera.tests.js b/test/unit/src/cameras/CubeCamera.tests.js index 45964a469b1dd2..4e5b6875c51be8 100644 --- a/test/unit/src/cameras/CubeCamera.tests.js +++ b/test/unit/src/cameras/CubeCamera.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CubeCamera } from '../../../../src/cameras/CubeCamera.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/cameras/OrthographicCamera.tests.js b/test/unit/src/cameras/OrthographicCamera.tests.js index 1737117ddeafa3..657b6b0bb0af5d 100644 --- a/test/unit/src/cameras/OrthographicCamera.tests.js +++ b/test/unit/src/cameras/OrthographicCamera.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { OrthographicCamera } from '../../../../src/cameras/OrthographicCamera.js'; import { Camera } from '../../../../src/cameras/Camera.js'; diff --git a/test/unit/src/cameras/PerspectiveCamera.tests.js b/test/unit/src/cameras/PerspectiveCamera.tests.js index 295062c553e44e..2926cd37d18eae 100644 --- a/test/unit/src/cameras/PerspectiveCamera.tests.js +++ b/test/unit/src/cameras/PerspectiveCamera.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PerspectiveCamera } from '../../../../src/cameras/PerspectiveCamera.js'; import { Matrix4 } from '../../../../src/math/Matrix4.js'; diff --git a/test/unit/src/cameras/StereoCamera.tests.js b/test/unit/src/cameras/StereoCamera.tests.js index 1255594f1f77d3..f00d73934de24d 100644 --- a/test/unit/src/cameras/StereoCamera.tests.js +++ b/test/unit/src/cameras/StereoCamera.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { StereoCamera } from '../../../../src/cameras/StereoCamera.js'; export default QUnit.module( 'Cameras', () => { diff --git a/test/unit/src/constants.tests.js b/test/unit/src/constants.tests.js index 818b609b6f4cb7..c9e3157c0884a7 100644 --- a/test/unit/src/constants.tests.js +++ b/test/unit/src/constants.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import * as Constants from '../../../src/constants.js'; export default QUnit.module( 'Constants', () => { diff --git a/test/unit/src/core/BufferAttribute.tests.js b/test/unit/src/core/BufferAttribute.tests.js index 52a68acfae5b6d..c1a4435b7b10d1 100644 --- a/test/unit/src/core/BufferAttribute.tests.js +++ b/test/unit/src/core/BufferAttribute.tests.js @@ -1,4 +1,3 @@ -/* global QUnit */ import { BufferAttribute, Int8BufferAttribute, diff --git a/test/unit/src/core/BufferGeometry.tests.js b/test/unit/src/core/BufferGeometry.tests.js index 21a0c997e05c18..565e640e6e8e26 100644 --- a/test/unit/src/core/BufferGeometry.tests.js +++ b/test/unit/src/core/BufferGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; import { diff --git a/test/unit/src/core/Clock.tests.js b/test/unit/src/core/Clock.tests.js index 871212a6f9be59..13834ce59c43ed 100644 --- a/test/unit/src/core/Clock.tests.js +++ b/test/unit/src/core/Clock.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Clock } from '../../../../src/core/Clock.js'; export default QUnit.module( 'Core', () => { diff --git a/test/unit/src/core/EventDispatcher.tests.js b/test/unit/src/core/EventDispatcher.tests.js index a9a66a6385f65c..a463eb1f86bd28 100644 --- a/test/unit/src/core/EventDispatcher.tests.js +++ b/test/unit/src/core/EventDispatcher.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { EventDispatcher } from '../../../../src/core/EventDispatcher.js'; export default QUnit.module( 'Core', () => { diff --git a/test/unit/src/core/GLBufferAttribute.tests.js b/test/unit/src/core/GLBufferAttribute.tests.js index fbb3b5830f469d..038d362ee89ac1 100644 --- a/test/unit/src/core/GLBufferAttribute.tests.js +++ b/test/unit/src/core/GLBufferAttribute.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { GLBufferAttribute } from '../../../../src/core/GLBufferAttribute.js'; export default QUnit.module( 'Core', () => { diff --git a/test/unit/src/core/InstancedBufferAttribute.tests.js b/test/unit/src/core/InstancedBufferAttribute.tests.js index 5ad93c45867dc2..8f49a79ef90120 100644 --- a/test/unit/src/core/InstancedBufferAttribute.tests.js +++ b/test/unit/src/core/InstancedBufferAttribute.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { InstancedBufferAttribute } from '../../../../src/core/InstancedBufferAttribute.js'; import { BufferAttribute } from '../../../../src/core/BufferAttribute.js'; diff --git a/test/unit/src/core/InstancedBufferGeometry.tests.js b/test/unit/src/core/InstancedBufferGeometry.tests.js index f86aaf1aa6b567..bd573aaaf5bca0 100644 --- a/test/unit/src/core/InstancedBufferGeometry.tests.js +++ b/test/unit/src/core/InstancedBufferGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { InstancedBufferGeometry } from '../../../../src/core/InstancedBufferGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/core/InstancedInterleavedBuffer.tests.js b/test/unit/src/core/InstancedInterleavedBuffer.tests.js index a768b66ba73294..c6bb947e6c4939 100644 --- a/test/unit/src/core/InstancedInterleavedBuffer.tests.js +++ b/test/unit/src/core/InstancedInterleavedBuffer.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { InstancedInterleavedBuffer } from '../../../../src/core/InstancedInterleavedBuffer.js'; import { InterleavedBuffer } from '../../../../src/core/InterleavedBuffer.js'; diff --git a/test/unit/src/core/InterleavedBuffer.tests.js b/test/unit/src/core/InterleavedBuffer.tests.js index d3b2c1b09c6c05..a1a14ad6005fe8 100644 --- a/test/unit/src/core/InterleavedBuffer.tests.js +++ b/test/unit/src/core/InterleavedBuffer.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { InterleavedBuffer } from '../../../../src/core/InterleavedBuffer.js'; import { DynamicDrawUsage } from '../../../../src/constants.js'; diff --git a/test/unit/src/core/InterleavedBufferAttribute.tests.js b/test/unit/src/core/InterleavedBufferAttribute.tests.js index ebc9906a688823..cb7eb99b3bd93c 100644 --- a/test/unit/src/core/InterleavedBufferAttribute.tests.js +++ b/test/unit/src/core/InterleavedBufferAttribute.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { InterleavedBufferAttribute } from '../../../../src/core/InterleavedBufferAttribute.js'; import { InterleavedBuffer } from '../../../../src/core/InterleavedBuffer.js'; diff --git a/test/unit/src/core/Layers.tests.js b/test/unit/src/core/Layers.tests.js index fd81579a37c45f..8c901abd8ea408 100644 --- a/test/unit/src/core/Layers.tests.js +++ b/test/unit/src/core/Layers.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Layers } from '../../../../src/core/Layers.js'; export default QUnit.module( 'Core', () => { diff --git a/test/unit/src/core/Object3D.tests.js b/test/unit/src/core/Object3D.tests.js index 61150c997e8665..2e941d7035c088 100644 --- a/test/unit/src/core/Object3D.tests.js +++ b/test/unit/src/core/Object3D.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Object3D } from '../../../../src/core/Object3D.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; diff --git a/test/unit/src/core/Raycaster.tests.js b/test/unit/src/core/Raycaster.tests.js index 5d94c2eae62834..072073462434e4 100644 --- a/test/unit/src/core/Raycaster.tests.js +++ b/test/unit/src/core/Raycaster.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Raycaster } from '../../../../src/core/Raycaster.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; import { Mesh } from '../../../../src/objects/Mesh.js'; diff --git a/test/unit/src/core/RenderTarget.tests.js b/test/unit/src/core/RenderTarget.tests.js index ed66d7fd206a09..7dc13625fc3c6a 100644 --- a/test/unit/src/core/RenderTarget.tests.js +++ b/test/unit/src/core/RenderTarget.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { NearestFilter } from '../../../../src/constants.js'; import { RenderTarget } from '../../../../src/core/RenderTarget.js'; diff --git a/test/unit/src/core/RenderTarget3D.tests.js b/test/unit/src/core/RenderTarget3D.tests.js index 33a39445aa3620..09d8a13e19c00a 100644 --- a/test/unit/src/core/RenderTarget3D.tests.js +++ b/test/unit/src/core/RenderTarget3D.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { RenderTarget3D } from '../../../../src/core/RenderTarget3D.js'; import { EventDispatcher } from '../../../../src/core/EventDispatcher.js'; diff --git a/test/unit/src/core/Uniform.tests.js b/test/unit/src/core/Uniform.tests.js index 2d677fcf168597..32289168b1785b 100644 --- a/test/unit/src/core/Uniform.tests.js +++ b/test/unit/src/core/Uniform.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Uniform } from '../../../../src/core/Uniform.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; import { diff --git a/test/unit/src/core/UniformsGroup.tests.js b/test/unit/src/core/UniformsGroup.tests.js index fb6a6b8e80cae8..8fde4162b7db88 100644 --- a/test/unit/src/core/UniformsGroup.tests.js +++ b/test/unit/src/core/UniformsGroup.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { UniformsGroup } from '../../../../src/core/UniformsGroup.js'; import { EventDispatcher } from '../../../../src/core/EventDispatcher.js'; diff --git a/test/unit/src/extras/DataUtils.tests.js b/test/unit/src/extras/DataUtils.tests.js index acd91f5d56532e..dfcc32f7be715e 100644 --- a/test/unit/src/extras/DataUtils.tests.js +++ b/test/unit/src/extras/DataUtils.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import * as DataUtils from '../../../../src/extras/DataUtils.js'; import { CONSOLE_LEVEL } from '../../utils/console-wrapper.js'; diff --git a/test/unit/src/extras/Earcut.tests.js b/test/unit/src/extras/Earcut.tests.js index 93bf186052f941..ea1e0829a3358c 100644 --- a/test/unit/src/extras/Earcut.tests.js +++ b/test/unit/src/extras/Earcut.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { Earcut } from '../../../../src/extras/Earcut.js'; export default QUnit.module( 'Extras', () => { diff --git a/test/unit/src/extras/ImageUtils.tests.js b/test/unit/src/extras/ImageUtils.tests.js index 4fa7722e3779a2..0f592e736d5edf 100644 --- a/test/unit/src/extras/ImageUtils.tests.js +++ b/test/unit/src/extras/ImageUtils.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { ImageUtils } from '../../../../src/extras/ImageUtils.js'; export default QUnit.module( 'Extras', () => { diff --git a/test/unit/src/extras/PMREMGenerator.tests.js b/test/unit/src/extras/PMREMGenerator.tests.js index 3e6317f97267c4..21dda22a521c9c 100644 --- a/test/unit/src/extras/PMREMGenerator.tests.js +++ b/test/unit/src/extras/PMREMGenerator.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { PMREMGenerator } from '../../../../src/extras/PMREMGenerator.js'; export default QUnit.module( 'Extras', () => { diff --git a/test/unit/src/extras/ShapeUtils.tests.js b/test/unit/src/extras/ShapeUtils.tests.js index fe527db692553c..a3dd53f52d06bb 100644 --- a/test/unit/src/extras/ShapeUtils.tests.js +++ b/test/unit/src/extras/ShapeUtils.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { ShapeUtils } from '../../../../src/extras/ShapeUtils.js'; export default QUnit.module( 'Extras', () => { diff --git a/test/unit/src/extras/core/Curve.tests.js b/test/unit/src/extras/core/Curve.tests.js index caaae9e0873dc5..809117b4a63464 100644 --- a/test/unit/src/extras/core/Curve.tests.js +++ b/test/unit/src/extras/core/Curve.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Curve } from '../../../../../src/extras/core/Curve.js'; export default QUnit.module( 'Extras', () => { diff --git a/test/unit/src/extras/core/CurvePath.tests.js b/test/unit/src/extras/core/CurvePath.tests.js index 1fc57b0bda11f7..2a604316ab55a2 100644 --- a/test/unit/src/extras/core/CurvePath.tests.js +++ b/test/unit/src/extras/core/CurvePath.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CurvePath } from '../../../../../src/extras/core/CurvePath.js'; import { Curve } from '../../../../../src/extras/core/Curve.js'; diff --git a/test/unit/src/extras/core/Interpolations.tests.js b/test/unit/src/extras/core/Interpolations.tests.js index 26894872628372..1c6a09c2df85d9 100644 --- a/test/unit/src/extras/core/Interpolations.tests.js +++ b/test/unit/src/extras/core/Interpolations.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { CatmullRom, QuadraticBezier, CubicBezier } from '../../../../../src/extras/core/Interpolations.js'; export default QUnit.module( 'Extras', () => { diff --git a/test/unit/src/extras/core/Path.tests.js b/test/unit/src/extras/core/Path.tests.js index 94e69ca94c2b45..782db1f74eeb17 100644 --- a/test/unit/src/extras/core/Path.tests.js +++ b/test/unit/src/extras/core/Path.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Path } from '../../../../../src/extras/core/Path.js'; import { CurvePath } from '../../../../../src/extras/core/CurvePath.js'; diff --git a/test/unit/src/extras/core/Shape.tests.js b/test/unit/src/extras/core/Shape.tests.js index 5e3731205f3617..a39f05a914da7e 100644 --- a/test/unit/src/extras/core/Shape.tests.js +++ b/test/unit/src/extras/core/Shape.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Shape } from '../../../../../src/extras/core/Shape.js'; import { Path } from '../../../../../src/extras/core/Path.js'; diff --git a/test/unit/src/extras/core/ShapePath.tests.js b/test/unit/src/extras/core/ShapePath.tests.js index 586f3381ea37f7..e2f90cc111b505 100644 --- a/test/unit/src/extras/core/ShapePath.tests.js +++ b/test/unit/src/extras/core/ShapePath.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ShapePath } from '../../../../../src/extras/core/ShapePath.js'; export default QUnit.module( 'Extras', () => { diff --git a/test/unit/src/extras/curves/ArcCurve.tests.js b/test/unit/src/extras/curves/ArcCurve.tests.js index a1467c7ea41f1d..f9f186593604c6 100644 --- a/test/unit/src/extras/curves/ArcCurve.tests.js +++ b/test/unit/src/extras/curves/ArcCurve.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ArcCurve } from '../../../../../src/extras/curves/ArcCurve.js'; import { EllipseCurve } from '../../../../../src/extras/curves/EllipseCurve.js'; diff --git a/test/unit/src/extras/curves/CatmullRomCurve3.tests.js b/test/unit/src/extras/curves/CatmullRomCurve3.tests.js index d57b506acdd4c7..7ba54042b73dd4 100644 --- a/test/unit/src/extras/curves/CatmullRomCurve3.tests.js +++ b/test/unit/src/extras/curves/CatmullRomCurve3.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CatmullRomCurve3 } from '../../../../../src/extras/curves/CatmullRomCurve3.js'; import { Curve } from '../../../../../src/extras/core/Curve.js'; diff --git a/test/unit/src/extras/curves/CubicBezierCurve.tests.js b/test/unit/src/extras/curves/CubicBezierCurve.tests.js index dc34eb60a018f2..c62d06aa10e843 100644 --- a/test/unit/src/extras/curves/CubicBezierCurve.tests.js +++ b/test/unit/src/extras/curves/CubicBezierCurve.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CubicBezierCurve } from '../../../../../src/extras/curves/CubicBezierCurve.js'; import { Curve } from '../../../../../src/extras/core/Curve.js'; diff --git a/test/unit/src/extras/curves/CubicBezierCurve3.tests.js b/test/unit/src/extras/curves/CubicBezierCurve3.tests.js index a39fac70193e16..a8739e02140d0f 100644 --- a/test/unit/src/extras/curves/CubicBezierCurve3.tests.js +++ b/test/unit/src/extras/curves/CubicBezierCurve3.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CubicBezierCurve3 } from '../../../../../src/extras/curves/CubicBezierCurve3.js'; import { Curve } from '../../../../../src/extras/core/Curve.js'; diff --git a/test/unit/src/extras/curves/EllipseCurve.tests.js b/test/unit/src/extras/curves/EllipseCurve.tests.js index 73a4126676be70..3829618b85e16e 100644 --- a/test/unit/src/extras/curves/EllipseCurve.tests.js +++ b/test/unit/src/extras/curves/EllipseCurve.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { EllipseCurve } from '../../../../../src/extras/curves/EllipseCurve.js'; import { Curve } from '../../../../../src/extras/core/Curve.js'; diff --git a/test/unit/src/extras/curves/LineCurve.tests.js b/test/unit/src/extras/curves/LineCurve.tests.js index aac458fabb702e..5a01a20b9d1463 100644 --- a/test/unit/src/extras/curves/LineCurve.tests.js +++ b/test/unit/src/extras/curves/LineCurve.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { LineCurve } from '../../../../../src/extras/curves/LineCurve.js'; import { Curve } from '../../../../../src/extras/core/Curve.js'; diff --git a/test/unit/src/extras/curves/LineCurve3.tests.js b/test/unit/src/extras/curves/LineCurve3.tests.js index 39ad6d29701afd..3cb96844c0e6cf 100644 --- a/test/unit/src/extras/curves/LineCurve3.tests.js +++ b/test/unit/src/extras/curves/LineCurve3.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { LineCurve3 } from '../../../../../src/extras/curves/LineCurve3.js'; import { Curve } from '../../../../../src/extras/core/Curve.js'; diff --git a/test/unit/src/extras/curves/QuadraticBezierCurve.tests.js b/test/unit/src/extras/curves/QuadraticBezierCurve.tests.js index 0dc82ba182f84c..6b2d34ec6ad245 100644 --- a/test/unit/src/extras/curves/QuadraticBezierCurve.tests.js +++ b/test/unit/src/extras/curves/QuadraticBezierCurve.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { QuadraticBezierCurve } from '../../../../../src/extras/curves/QuadraticBezierCurve.js'; import { Curve } from '../../../../../src/extras/core/Curve.js'; diff --git a/test/unit/src/extras/curves/QuadraticBezierCurve3.tests.js b/test/unit/src/extras/curves/QuadraticBezierCurve3.tests.js index acf7a7e8863c72..178ff8bead74e6 100644 --- a/test/unit/src/extras/curves/QuadraticBezierCurve3.tests.js +++ b/test/unit/src/extras/curves/QuadraticBezierCurve3.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { QuadraticBezierCurve3 } from '../../../../../src/extras/curves/QuadraticBezierCurve3.js'; import { Curve } from '../../../../../src/extras/core/Curve.js'; diff --git a/test/unit/src/extras/curves/SplineCurve.tests.js b/test/unit/src/extras/curves/SplineCurve.tests.js index cd179238b6fdb5..6947f43c2b405d 100644 --- a/test/unit/src/extras/curves/SplineCurve.tests.js +++ b/test/unit/src/extras/curves/SplineCurve.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { SplineCurve } from '../../../../../src/extras/curves/SplineCurve.js'; import { Curve } from '../../../../../src/extras/core/Curve.js'; diff --git a/test/unit/src/geometries/BoxGeometry.tests.js b/test/unit/src/geometries/BoxGeometry.tests.js index 909f38e6988076..565578d7534724 100644 --- a/test/unit/src/geometries/BoxGeometry.tests.js +++ b/test/unit/src/geometries/BoxGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { BoxGeometry } from '../../../../src/geometries/BoxGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/CapsuleGeometry.tests.js b/test/unit/src/geometries/CapsuleGeometry.tests.js index 02757489c8a17c..6df68683b519ea 100644 --- a/test/unit/src/geometries/CapsuleGeometry.tests.js +++ b/test/unit/src/geometries/CapsuleGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CapsuleGeometry } from '../../../../src/geometries/CapsuleGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/CircleGeometry.tests.js b/test/unit/src/geometries/CircleGeometry.tests.js index db34f253a5cfca..47fc630d996e16 100644 --- a/test/unit/src/geometries/CircleGeometry.tests.js +++ b/test/unit/src/geometries/CircleGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CircleGeometry } from '../../../../src/geometries/CircleGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/ConeGeometry.tests.js b/test/unit/src/geometries/ConeGeometry.tests.js index e49b4210ad1490..208ce6d21d8fa5 100644 --- a/test/unit/src/geometries/ConeGeometry.tests.js +++ b/test/unit/src/geometries/ConeGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ConeGeometry } from '../../../../src/geometries/ConeGeometry.js'; import { CylinderGeometry } from '../../../../src/geometries/CylinderGeometry.js'; diff --git a/test/unit/src/geometries/CylinderGeometry.tests.js b/test/unit/src/geometries/CylinderGeometry.tests.js index bfb59f7326a489..464b72fa7b5b71 100644 --- a/test/unit/src/geometries/CylinderGeometry.tests.js +++ b/test/unit/src/geometries/CylinderGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CylinderGeometry } from '../../../../src/geometries/CylinderGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/DodecahedronGeometry.tests.js b/test/unit/src/geometries/DodecahedronGeometry.tests.js index d33a52c99fc8f7..12a40a197b1c08 100644 --- a/test/unit/src/geometries/DodecahedronGeometry.tests.js +++ b/test/unit/src/geometries/DodecahedronGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { DodecahedronGeometry } from '../../../../src/geometries/DodecahedronGeometry.js'; import { PolyhedronGeometry } from '../../../../src/geometries/PolyhedronGeometry.js'; diff --git a/test/unit/src/geometries/EdgesGeometry.tests.js b/test/unit/src/geometries/EdgesGeometry.tests.js index 9786570597eeb9..e21cfd29829152 100644 --- a/test/unit/src/geometries/EdgesGeometry.tests.js +++ b/test/unit/src/geometries/EdgesGeometry.tests.js @@ -1,19 +1,9 @@ -/* global QUnit */ - import { EdgesGeometry } from '../../../../src/geometries/EdgesGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; import { BufferAttribute } from '../../../../src/core/BufferAttribute.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; -// DEBUGGING -import { Scene } from '../../../../src/scenes/Scene.js'; -import { Mesh } from '../../../../src/objects/Mesh.js'; -import { LineSegments } from '../../../../src/objects/LineSegments.js'; -import { LineBasicMaterial } from '../../../../src/materials/LineBasicMaterial.js'; -import { WebGLRenderer } from '../../../../src/renderers/WebGLRenderer.js'; -import { PerspectiveCamera } from '../../../../src/cameras/PerspectiveCamera.js'; - // // HELPERS // @@ -32,7 +22,6 @@ function testEdges( vertList, idxList, numAfter, assert ) { const egeom = new EdgesGeometry( geom ); assert.equal( countEdges( egeom ), numAfter, 'Edges after!' ); - output( geom, egeom ); } @@ -132,75 +121,6 @@ function countEdges( geom ) { } -// -// DEBUGGING -// -const DEBUG = false; -let renderer; -let camera; -const scene = new Scene(); -let xoffset = 0; - -function output( geom, egeom ) { - - if ( DEBUG !== true ) return; - - if ( ! renderer ) initDebug(); - - const mesh = new Mesh( geom, undefined ); - const edges = new LineSegments( egeom, new LineBasicMaterial( { color: 'black' } ) ); - - mesh.position.setX( xoffset ); - edges.position.setX( xoffset ++ ); - scene.add( mesh ); - scene.add( edges ); - - if ( scene.children.length % 8 === 0 ) { - - xoffset += 2; - - } - -} - -function initDebug() { - - renderer = new WebGLRenderer( { - - antialias: true - - } ); - - const width = 600; - const height = 480; - - renderer.setSize( width, height ); - renderer.setClearColor( 0xCCCCCC ); - - camera = new PerspectiveCamera( 45, width / height, 1, 100 ); - camera.position.x = 30; - camera.position.z = 40; - camera.lookAt( new Vector3( 30, 0, 0 ) ); - - document.body.appendChild( renderer.domElement ); - - const controls = new THREE.OrbitControls( camera, renderer.domElement ); // TODO: please do somethings for that -_-' - controls.target = new Vector3( 30, 0, 0 ); - - animate(); - - function animate() { - - requestAnimationFrame( animate ); - - controls.update(); - - renderer.render( scene, camera ); - - } - -} - export default QUnit.module( 'Geometries', () => { QUnit.module( 'EdgesGeometry', () => { diff --git a/test/unit/src/geometries/ExtrudeGeometry.tests.js b/test/unit/src/geometries/ExtrudeGeometry.tests.js index 9182a3c360736e..585f714adead87 100644 --- a/test/unit/src/geometries/ExtrudeGeometry.tests.js +++ b/test/unit/src/geometries/ExtrudeGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ExtrudeGeometry } from '../../../../src/geometries/ExtrudeGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/IcosahedronGeometry.tests.js b/test/unit/src/geometries/IcosahedronGeometry.tests.js index 21bd03740436a9..91ba21ec26c72f 100644 --- a/test/unit/src/geometries/IcosahedronGeometry.tests.js +++ b/test/unit/src/geometries/IcosahedronGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { IcosahedronGeometry } from '../../../../src/geometries/IcosahedronGeometry.js'; import { PolyhedronGeometry } from '../../../../src/geometries/PolyhedronGeometry.js'; diff --git a/test/unit/src/geometries/LatheGeometry.tests.js b/test/unit/src/geometries/LatheGeometry.tests.js index 5cc3b275ead765..8e2ad69482d6a5 100644 --- a/test/unit/src/geometries/LatheGeometry.tests.js +++ b/test/unit/src/geometries/LatheGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { LatheGeometry } from '../../../../src/geometries/LatheGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/OctahedronGeometry.tests.js b/test/unit/src/geometries/OctahedronGeometry.tests.js index 567048e9616abc..59813745a2d5a2 100644 --- a/test/unit/src/geometries/OctahedronGeometry.tests.js +++ b/test/unit/src/geometries/OctahedronGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { OctahedronGeometry } from '../../../../src/geometries/OctahedronGeometry.js'; import { PolyhedronGeometry } from '../../../../src/geometries/PolyhedronGeometry.js'; diff --git a/test/unit/src/geometries/PlaneGeometry.tests.js b/test/unit/src/geometries/PlaneGeometry.tests.js index b212382e4f86ae..c53d10b7cf79ad 100644 --- a/test/unit/src/geometries/PlaneGeometry.tests.js +++ b/test/unit/src/geometries/PlaneGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PlaneGeometry } from '../../../../src/geometries/PlaneGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/PolyhedronGeometry.tests.js b/test/unit/src/geometries/PolyhedronGeometry.tests.js index cf5b1cb5cb45c7..95481a511cbc50 100644 --- a/test/unit/src/geometries/PolyhedronGeometry.tests.js +++ b/test/unit/src/geometries/PolyhedronGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PolyhedronGeometry } from '../../../../src/geometries/PolyhedronGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/RingGeometry.tests.js b/test/unit/src/geometries/RingGeometry.tests.js index f571953db0206d..553664b5fcff48 100644 --- a/test/unit/src/geometries/RingGeometry.tests.js +++ b/test/unit/src/geometries/RingGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { RingGeometry } from '../../../../src/geometries/RingGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/ShapeGeometry.tests.js b/test/unit/src/geometries/ShapeGeometry.tests.js index fc6149cff51dc2..0f29a965a396b1 100644 --- a/test/unit/src/geometries/ShapeGeometry.tests.js +++ b/test/unit/src/geometries/ShapeGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ShapeGeometry } from '../../../../src/geometries/ShapeGeometry.js'; import { Shape } from '../../../../src/extras/core/Shape.js'; diff --git a/test/unit/src/geometries/SphereGeometry.tests.js b/test/unit/src/geometries/SphereGeometry.tests.js index 2f1e0fbb22c5a4..d5620509c595d5 100644 --- a/test/unit/src/geometries/SphereGeometry.tests.js +++ b/test/unit/src/geometries/SphereGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { SphereGeometry } from '../../../../src/geometries/SphereGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/TetrahedronGeometry.tests.js b/test/unit/src/geometries/TetrahedronGeometry.tests.js index d8da20d9d88df8..370c7a2cf0612a 100644 --- a/test/unit/src/geometries/TetrahedronGeometry.tests.js +++ b/test/unit/src/geometries/TetrahedronGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { TetrahedronGeometry } from '../../../../src/geometries/TetrahedronGeometry.js'; import { PolyhedronGeometry } from '../../../../src/geometries/PolyhedronGeometry.js'; diff --git a/test/unit/src/geometries/TorusGeometry.tests.js b/test/unit/src/geometries/TorusGeometry.tests.js index 17c908f7f67141..013eafb10565e2 100644 --- a/test/unit/src/geometries/TorusGeometry.tests.js +++ b/test/unit/src/geometries/TorusGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { TorusGeometry } from '../../../../src/geometries/TorusGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/TorusKnotGeometry.tests.js b/test/unit/src/geometries/TorusKnotGeometry.tests.js index 007fc065180622..af8aa6ddaf3040 100644 --- a/test/unit/src/geometries/TorusKnotGeometry.tests.js +++ b/test/unit/src/geometries/TorusKnotGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { TorusKnotGeometry } from '../../../../src/geometries/TorusKnotGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/geometries/TubeGeometry.tests.js b/test/unit/src/geometries/TubeGeometry.tests.js index 762e58d73c6d83..b4b15fd87caddc 100644 --- a/test/unit/src/geometries/TubeGeometry.tests.js +++ b/test/unit/src/geometries/TubeGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { TubeGeometry } from '../../../../src/geometries/TubeGeometry.js'; import { LineCurve3 } from '../../../../src/extras/curves/LineCurve3.js'; diff --git a/test/unit/src/geometries/WireframeGeometry.tests.js b/test/unit/src/geometries/WireframeGeometry.tests.js index 09075da0b74df3..6439bc73d4fc1e 100644 --- a/test/unit/src/geometries/WireframeGeometry.tests.js +++ b/test/unit/src/geometries/WireframeGeometry.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { WireframeGeometry } from '../../../../src/geometries/WireframeGeometry.js'; import { BufferGeometry } from '../../../../src/core/BufferGeometry.js'; diff --git a/test/unit/src/helpers/ArrowHelper.tests.js b/test/unit/src/helpers/ArrowHelper.tests.js index c2f4fb22e87145..0233324e3722a8 100644 --- a/test/unit/src/helpers/ArrowHelper.tests.js +++ b/test/unit/src/helpers/ArrowHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ArrowHelper } from '../../../../src/helpers/ArrowHelper.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/helpers/AxesHelper.tests.js b/test/unit/src/helpers/AxesHelper.tests.js index d2167d67ff4f5a..1b5413b4d5856d 100644 --- a/test/unit/src/helpers/AxesHelper.tests.js +++ b/test/unit/src/helpers/AxesHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { AxesHelper } from '../../../../src/helpers/AxesHelper.js'; import { LineSegments } from '../../../../src/objects/LineSegments.js'; diff --git a/test/unit/src/helpers/Box3Helper.tests.js b/test/unit/src/helpers/Box3Helper.tests.js index d5208eb528238c..fd87d9864cd9ec 100644 --- a/test/unit/src/helpers/Box3Helper.tests.js +++ b/test/unit/src/helpers/Box3Helper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Box3Helper } from '../../../../src/helpers/Box3Helper.js'; import { LineSegments } from '../../../../src/objects/LineSegments.js'; diff --git a/test/unit/src/helpers/BoxHelper.tests.js b/test/unit/src/helpers/BoxHelper.tests.js index 5f4ed11d2b06b6..42472b0dd474b7 100644 --- a/test/unit/src/helpers/BoxHelper.tests.js +++ b/test/unit/src/helpers/BoxHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { BoxHelper } from '../../../../src/helpers/BoxHelper.js'; import { LineSegments } from '../../../../src/objects/LineSegments.js'; diff --git a/test/unit/src/helpers/CameraHelper.tests.js b/test/unit/src/helpers/CameraHelper.tests.js index cfca8112620632..46b7e741a6a4de 100644 --- a/test/unit/src/helpers/CameraHelper.tests.js +++ b/test/unit/src/helpers/CameraHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CameraHelper } from '../../../../src/helpers/CameraHelper.js'; import { LineSegments } from '../../../../src/objects/LineSegments.js'; diff --git a/test/unit/src/helpers/DirectionalLightHelper.tests.js b/test/unit/src/helpers/DirectionalLightHelper.tests.js index 6f93afde4b1d5c..17ffed30f59bac 100644 --- a/test/unit/src/helpers/DirectionalLightHelper.tests.js +++ b/test/unit/src/helpers/DirectionalLightHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { DirectionalLightHelper } from '../../../../src/helpers/DirectionalLightHelper.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/helpers/GridHelper.tests.js b/test/unit/src/helpers/GridHelper.tests.js index a0d00425c2bf35..b8b8ab1b16962b 100644 --- a/test/unit/src/helpers/GridHelper.tests.js +++ b/test/unit/src/helpers/GridHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { GridHelper } from '../../../../src/helpers/GridHelper.js'; import { LineSegments } from '../../../../src/objects/LineSegments.js'; diff --git a/test/unit/src/helpers/HemisphereLightHelper.tests.js b/test/unit/src/helpers/HemisphereLightHelper.tests.js index 43249d53d3b285..3d7d3233a8e77f 100644 --- a/test/unit/src/helpers/HemisphereLightHelper.tests.js +++ b/test/unit/src/helpers/HemisphereLightHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { HemisphereLightHelper } from '../../../../src/helpers/HemisphereLightHelper.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/helpers/PlaneHelper.tests.js b/test/unit/src/helpers/PlaneHelper.tests.js index 6bf1f68e4da494..9375e449660511 100644 --- a/test/unit/src/helpers/PlaneHelper.tests.js +++ b/test/unit/src/helpers/PlaneHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PlaneHelper } from '../../../../src/helpers/PlaneHelper.js'; import { Line } from '../../../../src/objects/Line.js'; diff --git a/test/unit/src/helpers/PointLightHelper.tests.js b/test/unit/src/helpers/PointLightHelper.tests.js index 5c49dda41258b2..03cf526e2e9ea0 100644 --- a/test/unit/src/helpers/PointLightHelper.tests.js +++ b/test/unit/src/helpers/PointLightHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PointLightHelper } from '../../../../src/helpers/PointLightHelper.js'; import { Mesh } from '../../../../src/objects/Mesh.js'; diff --git a/test/unit/src/helpers/PolarGridHelper.tests.js b/test/unit/src/helpers/PolarGridHelper.tests.js index 2067b7050e28e9..ca360531cb9671 100644 --- a/test/unit/src/helpers/PolarGridHelper.tests.js +++ b/test/unit/src/helpers/PolarGridHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PolarGridHelper } from '../../../../src/helpers/PolarGridHelper.js'; import { LineSegments } from '../../../../src/objects/LineSegments.js'; diff --git a/test/unit/src/helpers/SkeletonHelper.tests.js b/test/unit/src/helpers/SkeletonHelper.tests.js index b30b177227f7e6..54573766d94168 100644 --- a/test/unit/src/helpers/SkeletonHelper.tests.js +++ b/test/unit/src/helpers/SkeletonHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { SkeletonHelper } from '../../../../src/helpers/SkeletonHelper.js'; import { LineSegments } from '../../../../src/objects/LineSegments.js'; diff --git a/test/unit/src/helpers/SpotLightHelper.tests.js b/test/unit/src/helpers/SpotLightHelper.tests.js index 54512d454367e2..475205b0726e14 100644 --- a/test/unit/src/helpers/SpotLightHelper.tests.js +++ b/test/unit/src/helpers/SpotLightHelper.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { SpotLightHelper } from '../../../../src/helpers/SpotLightHelper.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/lights/AmbientLight.tests.js b/test/unit/src/lights/AmbientLight.tests.js index 1e5c293966f728..ccec6df5e3e463 100644 --- a/test/unit/src/lights/AmbientLight.tests.js +++ b/test/unit/src/lights/AmbientLight.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { AmbientLight } from '../../../../src/lights/AmbientLight.js'; import { Light } from '../../../../src/lights/Light.js'; diff --git a/test/unit/src/lights/DirectionalLight.tests.js b/test/unit/src/lights/DirectionalLight.tests.js index 6bc9aa7ac01158..90a861c35a1588 100644 --- a/test/unit/src/lights/DirectionalLight.tests.js +++ b/test/unit/src/lights/DirectionalLight.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { DirectionalLight } from '../../../../src/lights/DirectionalLight.js'; import { Light } from '../../../../src/lights/Light.js'; diff --git a/test/unit/src/lights/DirectionalLightShadow.tests.js b/test/unit/src/lights/DirectionalLightShadow.tests.js index 6fd382b1458609..3c313675cc782b 100644 --- a/test/unit/src/lights/DirectionalLightShadow.tests.js +++ b/test/unit/src/lights/DirectionalLightShadow.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { DirectionalLightShadow } from '../../../../src/lights/DirectionalLightShadow.js'; import { LightShadow } from '../../../../src/lights/LightShadow.js'; diff --git a/test/unit/src/lights/HemisphereLight.tests.js b/test/unit/src/lights/HemisphereLight.tests.js index c3d857558df002..c4e576a62bb512 100644 --- a/test/unit/src/lights/HemisphereLight.tests.js +++ b/test/unit/src/lights/HemisphereLight.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { HemisphereLight } from '../../../../src/lights/HemisphereLight.js'; import { Light } from '../../../../src/lights/Light.js'; diff --git a/test/unit/src/lights/Light.tests.js b/test/unit/src/lights/Light.tests.js index db0e56b033f4ca..a14aea44b9cb60 100644 --- a/test/unit/src/lights/Light.tests.js +++ b/test/unit/src/lights/Light.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Light } from '../../../../src/lights/Light.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/lights/LightProbe.tests.js b/test/unit/src/lights/LightProbe.tests.js index fa6479822d30e8..890e5e5242ec5d 100644 --- a/test/unit/src/lights/LightProbe.tests.js +++ b/test/unit/src/lights/LightProbe.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { LightProbe } from '../../../../src/lights/LightProbe.js'; import { Light } from '../../../../src/lights/Light.js'; diff --git a/test/unit/src/lights/LightShadow.tests.js b/test/unit/src/lights/LightShadow.tests.js index acd478156667c6..3fbc6965597831 100644 --- a/test/unit/src/lights/LightShadow.tests.js +++ b/test/unit/src/lights/LightShadow.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { LightShadow } from '../../../../src/lights/LightShadow.js'; import { OrthographicCamera } from '../../../../src/cameras/OrthographicCamera.js'; diff --git a/test/unit/src/lights/PointLight.tests.js b/test/unit/src/lights/PointLight.tests.js index f2ddd92d9d7b46..142867de2c9d9c 100644 --- a/test/unit/src/lights/PointLight.tests.js +++ b/test/unit/src/lights/PointLight.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PointLight } from '../../../../src/lights/PointLight.js'; import { Light } from '../../../../src/lights/Light.js'; diff --git a/test/unit/src/lights/PointLightShadow.tests.js b/test/unit/src/lights/PointLightShadow.tests.js index 3f0d4b729bf242..419a6aacc8f8bc 100644 --- a/test/unit/src/lights/PointLightShadow.tests.js +++ b/test/unit/src/lights/PointLightShadow.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PointLightShadow } from '../../../../src/lights/PointLightShadow.js'; import { LightShadow } from '../../../../src/lights/LightShadow.js'; diff --git a/test/unit/src/lights/RectAreaLight.tests.js b/test/unit/src/lights/RectAreaLight.tests.js index 9ce537ff5be88f..fe05499f1bf5d2 100644 --- a/test/unit/src/lights/RectAreaLight.tests.js +++ b/test/unit/src/lights/RectAreaLight.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { RectAreaLight } from '../../../../src/lights/RectAreaLight.js'; import { Light } from '../../../../src/lights/Light.js'; diff --git a/test/unit/src/lights/SpotLight.tests.js b/test/unit/src/lights/SpotLight.tests.js index d371df5c9f88af..b38a4f3fbe3915 100644 --- a/test/unit/src/lights/SpotLight.tests.js +++ b/test/unit/src/lights/SpotLight.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { SpotLight } from '../../../../src/lights/SpotLight.js'; import { Light } from '../../../../src/lights/Light.js'; diff --git a/test/unit/src/lights/SpotLightShadow.tests.js b/test/unit/src/lights/SpotLightShadow.tests.js index 334f1dd9fe6927..2c75ac16b6faed 100644 --- a/test/unit/src/lights/SpotLightShadow.tests.js +++ b/test/unit/src/lights/SpotLightShadow.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { SpotLightShadow } from '../../../../src/lights/SpotLightShadow.js'; import { LightShadow } from '../../../../src/lights/LightShadow.js'; diff --git a/test/unit/src/loaders/AnimationLoader.tests.js b/test/unit/src/loaders/AnimationLoader.tests.js index 0724cb307624a7..445d90534abe4e 100644 --- a/test/unit/src/loaders/AnimationLoader.tests.js +++ b/test/unit/src/loaders/AnimationLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { AnimationLoader } from '../../../../src/loaders/AnimationLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/AudioLoader.tests.js b/test/unit/src/loaders/AudioLoader.tests.js index f214e4aac60dd2..16837cd8bbae3f 100644 --- a/test/unit/src/loaders/AudioLoader.tests.js +++ b/test/unit/src/loaders/AudioLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { AudioLoader } from '../../../../src/loaders/AudioLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/BufferGeometryLoader.tests.js b/test/unit/src/loaders/BufferGeometryLoader.tests.js index b83aae49e1ee28..2171a324038692 100644 --- a/test/unit/src/loaders/BufferGeometryLoader.tests.js +++ b/test/unit/src/loaders/BufferGeometryLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { BufferGeometryLoader } from '../../../../src/loaders/BufferGeometryLoader.js'; import { BufferAttribute } from '../../../../src/core/BufferAttribute.js'; diff --git a/test/unit/src/loaders/Cache.tests.js b/test/unit/src/loaders/Cache.tests.js index 55ee8b51dbe0f9..e6d933d3067d49 100644 --- a/test/unit/src/loaders/Cache.tests.js +++ b/test/unit/src/loaders/Cache.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Cache } from '../../../../src/loaders/Cache.js'; export default QUnit.module( 'Loaders', () => { diff --git a/test/unit/src/loaders/CompressedTextureLoader.tests.js b/test/unit/src/loaders/CompressedTextureLoader.tests.js index b485e1e6279f33..35f287d16b73c6 100644 --- a/test/unit/src/loaders/CompressedTextureLoader.tests.js +++ b/test/unit/src/loaders/CompressedTextureLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CompressedTextureLoader } from '../../../../src/loaders/CompressedTextureLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/CubeTextureLoader.tests.js b/test/unit/src/loaders/CubeTextureLoader.tests.js index 305228e98c6f9f..94cb6c8152d0f2 100644 --- a/test/unit/src/loaders/CubeTextureLoader.tests.js +++ b/test/unit/src/loaders/CubeTextureLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CubeTextureLoader } from '../../../../src/loaders/CubeTextureLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/DataTextureLoader.tests.js b/test/unit/src/loaders/DataTextureLoader.tests.js index f163666e3dab59..1b6e9fef19f6ed 100644 --- a/test/unit/src/loaders/DataTextureLoader.tests.js +++ b/test/unit/src/loaders/DataTextureLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { DataTextureLoader } from '../../../../src/loaders/DataTextureLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/FileLoader.tests.js b/test/unit/src/loaders/FileLoader.tests.js index 3952afd1daa6a3..eb7a2591e3a5be 100644 --- a/test/unit/src/loaders/FileLoader.tests.js +++ b/test/unit/src/loaders/FileLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { FileLoader } from '../../../../src/loaders/FileLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/ImageBitmapLoader.tests.js b/test/unit/src/loaders/ImageBitmapLoader.tests.js index e3e4d6cbc04d54..cfa2b63cbcbf3c 100644 --- a/test/unit/src/loaders/ImageBitmapLoader.tests.js +++ b/test/unit/src/loaders/ImageBitmapLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ImageBitmapLoader } from '../../../../src/loaders/ImageBitmapLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/ImageLoader.tests.js b/test/unit/src/loaders/ImageLoader.tests.js index efd9c7895c7655..2f88e2bf524e95 100644 --- a/test/unit/src/loaders/ImageLoader.tests.js +++ b/test/unit/src/loaders/ImageLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ImageLoader } from '../../../../src/loaders/ImageLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/Loader.tests.js b/test/unit/src/loaders/Loader.tests.js index 10feb2d6b6febf..b275d3a4aad6c5 100644 --- a/test/unit/src/loaders/Loader.tests.js +++ b/test/unit/src/loaders/Loader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Loader } from '../../../../src/loaders/Loader.js'; import { LoadingManager } from '../../../../src/loaders/LoadingManager.js'; diff --git a/test/unit/src/loaders/LoaderUtils.tests.js b/test/unit/src/loaders/LoaderUtils.tests.js index 9f727507ab61cf..0a3dba8a20836f 100644 --- a/test/unit/src/loaders/LoaderUtils.tests.js +++ b/test/unit/src/loaders/LoaderUtils.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { LoaderUtils } from '../../../../src/loaders/LoaderUtils.js'; export default QUnit.module( 'Loaders', () => { diff --git a/test/unit/src/loaders/LoadingManager.tests.js b/test/unit/src/loaders/LoadingManager.tests.js index d859f854e05bd7..1978a844cfb987 100644 --- a/test/unit/src/loaders/LoadingManager.tests.js +++ b/test/unit/src/loaders/LoadingManager.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { LoadingManager } from '../../../../src/loaders/LoadingManager.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/MaterialLoader.tests.js b/test/unit/src/loaders/MaterialLoader.tests.js index 3e10cf8db35072..a541cf3bf9db61 100644 --- a/test/unit/src/loaders/MaterialLoader.tests.js +++ b/test/unit/src/loaders/MaterialLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MaterialLoader } from '../../../../src/loaders/MaterialLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/ObjectLoader.tests.js b/test/unit/src/loaders/ObjectLoader.tests.js index d9e4efa3d4bcdb..126ece9666addd 100644 --- a/test/unit/src/loaders/ObjectLoader.tests.js +++ b/test/unit/src/loaders/ObjectLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ObjectLoader } from '../../../../src/loaders/ObjectLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/loaders/TextureLoader.tests.js b/test/unit/src/loaders/TextureLoader.tests.js index dddb0113de3e3e..23612aa6597229 100644 --- a/test/unit/src/loaders/TextureLoader.tests.js +++ b/test/unit/src/loaders/TextureLoader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { TextureLoader } from '../../../../src/loaders/TextureLoader.js'; import { Loader } from '../../../../src/loaders/Loader.js'; diff --git a/test/unit/src/materials/LineBasicMaterial.tests.js b/test/unit/src/materials/LineBasicMaterial.tests.js index 95e17001edc0de..34aa7e75b04c84 100644 --- a/test/unit/src/materials/LineBasicMaterial.tests.js +++ b/test/unit/src/materials/LineBasicMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { LineBasicMaterial } from '../../../../src/materials/LineBasicMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/LineDashedMaterial.tests.js b/test/unit/src/materials/LineDashedMaterial.tests.js index eb13e7508b1f5d..02459db0a83417 100644 --- a/test/unit/src/materials/LineDashedMaterial.tests.js +++ b/test/unit/src/materials/LineDashedMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { LineDashedMaterial } from '../../../../src/materials/LineDashedMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/Material.tests.js b/test/unit/src/materials/Material.tests.js index d6cec5d6c28b15..c8b8642a71bf89 100644 --- a/test/unit/src/materials/Material.tests.js +++ b/test/unit/src/materials/Material.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Material } from '../../../../src/materials/Material.js'; import { EventDispatcher } from '../../../../src/core/EventDispatcher.js'; diff --git a/test/unit/src/materials/MeshBasicMaterial.tests.js b/test/unit/src/materials/MeshBasicMaterial.tests.js index a28cb7d87f598d..51d6dc737af995 100644 --- a/test/unit/src/materials/MeshBasicMaterial.tests.js +++ b/test/unit/src/materials/MeshBasicMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MeshBasicMaterial } from '../../../../src/materials/MeshBasicMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/MeshDepthMaterial.tests.js b/test/unit/src/materials/MeshDepthMaterial.tests.js index 1d43a7c614364f..c6c22fcaaa5e7d 100644 --- a/test/unit/src/materials/MeshDepthMaterial.tests.js +++ b/test/unit/src/materials/MeshDepthMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MeshDepthMaterial } from '../../../../src/materials/MeshDepthMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/MeshDistanceMaterial.tests.js b/test/unit/src/materials/MeshDistanceMaterial.tests.js index 29c1bf38a452d8..ba0e61de8f1cc5 100644 --- a/test/unit/src/materials/MeshDistanceMaterial.tests.js +++ b/test/unit/src/materials/MeshDistanceMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MeshDistanceMaterial } from '../../../../src/materials/MeshDistanceMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/MeshLambertMaterial.tests.js b/test/unit/src/materials/MeshLambertMaterial.tests.js index b169dfc159ff7d..475ba9c3409f47 100644 --- a/test/unit/src/materials/MeshLambertMaterial.tests.js +++ b/test/unit/src/materials/MeshLambertMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MeshLambertMaterial } from '../../../../src/materials/MeshLambertMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/MeshMatcapMaterial.tests.js b/test/unit/src/materials/MeshMatcapMaterial.tests.js index 68ea7c1a562577..d3513d00531227 100644 --- a/test/unit/src/materials/MeshMatcapMaterial.tests.js +++ b/test/unit/src/materials/MeshMatcapMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MeshMatcapMaterial } from '../../../../src/materials/MeshMatcapMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/MeshNormalMaterial.tests.js b/test/unit/src/materials/MeshNormalMaterial.tests.js index 163b47a2f48f4c..b956fc45c98ed5 100644 --- a/test/unit/src/materials/MeshNormalMaterial.tests.js +++ b/test/unit/src/materials/MeshNormalMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MeshNormalMaterial } from '../../../../src/materials/MeshNormalMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/MeshPhongMaterial.tests.js b/test/unit/src/materials/MeshPhongMaterial.tests.js index 0c3b0a187ec12b..ba2234a7fad3ae 100644 --- a/test/unit/src/materials/MeshPhongMaterial.tests.js +++ b/test/unit/src/materials/MeshPhongMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MeshPhongMaterial } from '../../../../src/materials/MeshPhongMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/MeshPhysicalMaterial.tests.js b/test/unit/src/materials/MeshPhysicalMaterial.tests.js index 9660b4df0a4ff7..86f9f347494943 100644 --- a/test/unit/src/materials/MeshPhysicalMaterial.tests.js +++ b/test/unit/src/materials/MeshPhysicalMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MeshPhysicalMaterial } from '../../../../src/materials/MeshPhysicalMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/MeshStandardMaterial.tests.js b/test/unit/src/materials/MeshStandardMaterial.tests.js index 700d374ccf0c47..0f9ba2c36e1966 100644 --- a/test/unit/src/materials/MeshStandardMaterial.tests.js +++ b/test/unit/src/materials/MeshStandardMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MeshStandardMaterial } from '../../../../src/materials/MeshStandardMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/MeshToonMaterial.tests.js b/test/unit/src/materials/MeshToonMaterial.tests.js index 03b6caa5d9a50c..14f451fcf7286f 100644 --- a/test/unit/src/materials/MeshToonMaterial.tests.js +++ b/test/unit/src/materials/MeshToonMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { MeshToonMaterial } from '../../../../src/materials/MeshToonMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/PointsMaterial.tests.js b/test/unit/src/materials/PointsMaterial.tests.js index e287fb3891ed31..4c867c43120e98 100644 --- a/test/unit/src/materials/PointsMaterial.tests.js +++ b/test/unit/src/materials/PointsMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { PointsMaterial } from '../../../../src/materials/PointsMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/RawShaderMaterial.tests.js b/test/unit/src/materials/RawShaderMaterial.tests.js index bcea52a1ae6972..a39570540dd022 100644 --- a/test/unit/src/materials/RawShaderMaterial.tests.js +++ b/test/unit/src/materials/RawShaderMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { RawShaderMaterial } from '../../../../src/materials/RawShaderMaterial.js'; import { ShaderMaterial } from '../../../../src/materials/ShaderMaterial.js'; diff --git a/test/unit/src/materials/ShaderMaterial.tests.js b/test/unit/src/materials/ShaderMaterial.tests.js index 7983e51a506196..777ce276d81eb9 100644 --- a/test/unit/src/materials/ShaderMaterial.tests.js +++ b/test/unit/src/materials/ShaderMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ShaderMaterial } from '../../../../src/materials/ShaderMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/ShadowMaterial.tests.js b/test/unit/src/materials/ShadowMaterial.tests.js index 80ef51e0d833e6..9951aca6c989e6 100644 --- a/test/unit/src/materials/ShadowMaterial.tests.js +++ b/test/unit/src/materials/ShadowMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ShadowMaterial } from '../../../../src/materials/ShadowMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/materials/SpriteMaterial.tests.js b/test/unit/src/materials/SpriteMaterial.tests.js index f02907fdb487f3..14df34293f2592 100644 --- a/test/unit/src/materials/SpriteMaterial.tests.js +++ b/test/unit/src/materials/SpriteMaterial.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { SpriteMaterial } from '../../../../src/materials/SpriteMaterial.js'; import { Material } from '../../../../src/materials/Material.js'; diff --git a/test/unit/src/math/Box2.tests.js b/test/unit/src/math/Box2.tests.js index e4c742307797e5..be633d6f117200 100644 --- a/test/unit/src/math/Box2.tests.js +++ b/test/unit/src/math/Box2.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Box2 } from '../../../../src/math/Box2.js'; import { Vector2 } from '../../../../src/math/Vector2.js'; import { diff --git a/test/unit/src/math/Box3.tests.js b/test/unit/src/math/Box3.tests.js index 083df55414b050..8bf2b8f4a71f76 100644 --- a/test/unit/src/math/Box3.tests.js +++ b/test/unit/src/math/Box3.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Box3 } from '../../../../src/math/Box3.js'; import { Sphere } from '../../../../src/math/Sphere.js'; import { Triangle } from '../../../../src/math/Triangle.js'; diff --git a/test/unit/src/math/Color.tests.js b/test/unit/src/math/Color.tests.js index 619bbd6db99781..e1c74dc17eca00 100644 --- a/test/unit/src/math/Color.tests.js +++ b/test/unit/src/math/Color.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Color } from '../../../../src/math/Color.js'; import { ColorManagement } from '../../../../src/math/ColorManagement.js'; import { eps } from '../../utils/math-constants.js'; diff --git a/test/unit/src/math/ColorManagement.tests.js b/test/unit/src/math/ColorManagement.tests.js index 3a437aa7a6e0db..1ed6d49d62b18f 100644 --- a/test/unit/src/math/ColorManagement.tests.js +++ b/test/unit/src/math/ColorManagement.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ColorManagement } from '../../../../src/math/ColorManagement.js'; export default QUnit.module( 'Maths', () => { diff --git a/test/unit/src/math/Cylindrical.tests.js b/test/unit/src/math/Cylindrical.tests.js index 67c09cb697fdcb..8dbfe072e88be7 100644 --- a/test/unit/src/math/Cylindrical.tests.js +++ b/test/unit/src/math/Cylindrical.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Cylindrical } from '../../../../src/math/Cylindrical.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; import { eps } from '../../utils/math-constants.js'; diff --git a/test/unit/src/math/Euler.tests.js b/test/unit/src/math/Euler.tests.js index 64aedb3162d724..4a28951b0f39cb 100644 --- a/test/unit/src/math/Euler.tests.js +++ b/test/unit/src/math/Euler.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Euler } from '../../../../src/math/Euler.js'; import { Matrix4 } from '../../../../src/math/Matrix4.js'; import { Quaternion } from '../../../../src/math/Quaternion.js'; diff --git a/test/unit/src/math/Frustum.tests.js b/test/unit/src/math/Frustum.tests.js index 31a99ac5f0c1cb..34ff43bf5e6724 100644 --- a/test/unit/src/math/Frustum.tests.js +++ b/test/unit/src/math/Frustum.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Frustum } from '../../../../src/math/Frustum.js'; import { Sphere } from '../../../../src/math/Sphere.js'; diff --git a/test/unit/src/math/Interpolant.tests.js b/test/unit/src/math/Interpolant.tests.js index a5ae22eabbbc0f..8bd6e763472936 100644 --- a/test/unit/src/math/Interpolant.tests.js +++ b/test/unit/src/math/Interpolant.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Interpolant } from '../../../../src/math/Interpolant.js'; export default QUnit.module( 'Maths', () => { diff --git a/test/unit/src/math/Line3.tests.js b/test/unit/src/math/Line3.tests.js index 6ea124973e8e44..2dc55d63defe49 100644 --- a/test/unit/src/math/Line3.tests.js +++ b/test/unit/src/math/Line3.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Line3 } from '../../../../src/math/Line3.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; import { Vector4 } from '../../../../src/math/Vector4.js'; diff --git a/test/unit/src/math/MathUtils.tests.js b/test/unit/src/math/MathUtils.tests.js index 71e028b72f9a0a..f547adb169754e 100644 --- a/test/unit/src/math/MathUtils.tests.js +++ b/test/unit/src/math/MathUtils.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import * as MathUtils from '../../../../src/math/MathUtils.js'; export default QUnit.module( 'Maths', () => { diff --git a/test/unit/src/math/Matrix3.tests.js b/test/unit/src/math/Matrix3.tests.js index 4b14d2ab452489..b03105493a5d2c 100644 --- a/test/unit/src/math/Matrix3.tests.js +++ b/test/unit/src/math/Matrix3.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Matrix3 } from '../../../../src/math/Matrix3.js'; import { Matrix4 } from '../../../../src/math/Matrix4.js'; import { Vector2 } from '../../../../src/math/Vector2.js'; diff --git a/test/unit/src/math/Matrix4.tests.js b/test/unit/src/math/Matrix4.tests.js index a12b66049ff61c..03b8ced4939411 100644 --- a/test/unit/src/math/Matrix4.tests.js +++ b/test/unit/src/math/Matrix4.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Matrix3 } from '../../../../src/math/Matrix3.js'; import { Matrix4 } from '../../../../src/math/Matrix4.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; diff --git a/test/unit/src/math/Plane.tests.js b/test/unit/src/math/Plane.tests.js index 206fd5cd3cd5f6..192bb9224c3469 100644 --- a/test/unit/src/math/Plane.tests.js +++ b/test/unit/src/math/Plane.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Plane } from '../../../../src/math/Plane.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; import { Line3 } from '../../../../src/math/Line3.js'; diff --git a/test/unit/src/math/Quaternion.tests.js b/test/unit/src/math/Quaternion.tests.js index e80dca9993e3da..a461286dfb9cf2 100644 --- a/test/unit/src/math/Quaternion.tests.js +++ b/test/unit/src/math/Quaternion.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { BufferAttribute } from '../../../../src/core/BufferAttribute.js'; import { Quaternion } from '../../../../src/math/Quaternion.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; diff --git a/test/unit/src/math/Ray.tests.js b/test/unit/src/math/Ray.tests.js index 92517dac6bd27d..177680104449ac 100644 --- a/test/unit/src/math/Ray.tests.js +++ b/test/unit/src/math/Ray.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Ray } from '../../../../src/math/Ray.js'; import { Box3 } from '../../../../src/math/Box3.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; diff --git a/test/unit/src/math/Sphere.tests.js b/test/unit/src/math/Sphere.tests.js index b594bff47a3ec7..557a193b0f1f93 100644 --- a/test/unit/src/math/Sphere.tests.js +++ b/test/unit/src/math/Sphere.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Box3 } from '../../../../src/math/Box3.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; import { Sphere } from '../../../../src/math/Sphere.js'; diff --git a/test/unit/src/math/Spherical.tests.js b/test/unit/src/math/Spherical.tests.js index 06735d2f73c7c5..f4e9d7c05b81d0 100644 --- a/test/unit/src/math/Spherical.tests.js +++ b/test/unit/src/math/Spherical.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Spherical } from '../../../../src/math/Spherical.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; import { diff --git a/test/unit/src/math/SphericalHarmonics3.tests.js b/test/unit/src/math/SphericalHarmonics3.tests.js index 47ac1d152612bd..be5173376f1ab8 100644 --- a/test/unit/src/math/SphericalHarmonics3.tests.js +++ b/test/unit/src/math/SphericalHarmonics3.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { SphericalHarmonics3 } from '../../../../src/math/SphericalHarmonics3.js'; export default QUnit.module( 'Maths', () => { diff --git a/test/unit/src/math/Triangle.tests.js b/test/unit/src/math/Triangle.tests.js index 4ffa9d3df52172..3b81d7258d287a 100644 --- a/test/unit/src/math/Triangle.tests.js +++ b/test/unit/src/math/Triangle.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { BufferAttribute } from '../../../../src/core/BufferAttribute.js'; import { Triangle } from '../../../../src/math/Triangle.js'; import { Box3 } from '../../../../src/math/Box3.js'; diff --git a/test/unit/src/math/Vector2.tests.js b/test/unit/src/math/Vector2.tests.js index 73a86a0cb69c23..eaeee1083de9e5 100644 --- a/test/unit/src/math/Vector2.tests.js +++ b/test/unit/src/math/Vector2.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Vector2 } from '../../../../src/math/Vector2.js'; import { Matrix3 } from '../../../../src/math/Matrix3.js'; import { BufferAttribute } from '../../../../src/core/BufferAttribute.js'; diff --git a/test/unit/src/math/Vector3.tests.js b/test/unit/src/math/Vector3.tests.js index ad6774af8b14d8..d97a8627b336e6 100644 --- a/test/unit/src/math/Vector3.tests.js +++ b/test/unit/src/math/Vector3.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Vector3 } from '../../../../src/math/Vector3.js'; import { Vector4 } from '../../../../src/math/Vector4.js'; import { Matrix3 } from '../../../../src/math/Matrix3.js'; diff --git a/test/unit/src/math/Vector4.tests.js b/test/unit/src/math/Vector4.tests.js index 56aff5ff222dce..8997253da00699 100644 --- a/test/unit/src/math/Vector4.tests.js +++ b/test/unit/src/math/Vector4.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Vector4 } from '../../../../src/math/Vector4.js'; import { Matrix4 } from '../../../../src/math/Matrix4.js'; import { BufferAttribute } from '../../../../src/core/BufferAttribute.js'; diff --git a/test/unit/src/math/interpolants/CubicInterpolant.tests.js b/test/unit/src/math/interpolants/CubicInterpolant.tests.js index 7ef043648f3497..a1616eac3944e1 100644 --- a/test/unit/src/math/interpolants/CubicInterpolant.tests.js +++ b/test/unit/src/math/interpolants/CubicInterpolant.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CubicInterpolant } from '../../../../../src/math/interpolants/CubicInterpolant.js'; import { Interpolant } from '../../../../../src/math/Interpolant.js'; diff --git a/test/unit/src/math/interpolants/DiscreteInterpolant.tests.js b/test/unit/src/math/interpolants/DiscreteInterpolant.tests.js index eb3d3273a70cca..8ffc45a80dfe1b 100644 --- a/test/unit/src/math/interpolants/DiscreteInterpolant.tests.js +++ b/test/unit/src/math/interpolants/DiscreteInterpolant.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { DiscreteInterpolant } from '../../../../../src/math/interpolants/DiscreteInterpolant.js'; import { Interpolant } from '../../../../../src/math/Interpolant.js'; diff --git a/test/unit/src/math/interpolants/LinearInterpolant.tests.js b/test/unit/src/math/interpolants/LinearInterpolant.tests.js index 704307756506f7..36c2a268927b1d 100644 --- a/test/unit/src/math/interpolants/LinearInterpolant.tests.js +++ b/test/unit/src/math/interpolants/LinearInterpolant.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { LinearInterpolant } from '../../../../../src/math/interpolants/LinearInterpolant.js'; import { Interpolant } from '../../../../../src/math/Interpolant.js'; diff --git a/test/unit/src/math/interpolants/QuaternionLinearInterpolant.tests.js b/test/unit/src/math/interpolants/QuaternionLinearInterpolant.tests.js index c9b4ca51c3a8b5..a0cce562ed60d2 100644 --- a/test/unit/src/math/interpolants/QuaternionLinearInterpolant.tests.js +++ b/test/unit/src/math/interpolants/QuaternionLinearInterpolant.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { QuaternionLinearInterpolant } from '../../../../../src/math/interpolants/QuaternionLinearInterpolant.js'; import { Interpolant } from '../../../../../src/math/Interpolant.js'; diff --git a/test/unit/src/objects/BatchedMesh.tests.js b/test/unit/src/objects/BatchedMesh.tests.js index e8208555150731..48c0c61559908e 100644 --- a/test/unit/src/objects/BatchedMesh.tests.js +++ b/test/unit/src/objects/BatchedMesh.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { BatchedMesh } from '../../../../src/objects/BatchedMesh.js'; import { BoxGeometry } from '../../../../src/geometries/BoxGeometry.js'; import { MeshBasicMaterial } from '../../../../src/materials/MeshBasicMaterial.js'; diff --git a/test/unit/src/objects/Bone.tests.js b/test/unit/src/objects/Bone.tests.js index 7059a1e54ddb1d..2817c3127a3ddd 100644 --- a/test/unit/src/objects/Bone.tests.js +++ b/test/unit/src/objects/Bone.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Bone } from '../../../../src/objects/Bone.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/objects/Group.tests.js b/test/unit/src/objects/Group.tests.js index a8908e722349b8..99f7b3b197f673 100644 --- a/test/unit/src/objects/Group.tests.js +++ b/test/unit/src/objects/Group.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Group } from '../../../../src/objects/Group.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/objects/InstancedMesh.tests.js b/test/unit/src/objects/InstancedMesh.tests.js index 8853fa41b20404..192870c200820e 100644 --- a/test/unit/src/objects/InstancedMesh.tests.js +++ b/test/unit/src/objects/InstancedMesh.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { InstancedMesh } from '../../../../src/objects/InstancedMesh.js'; import { Mesh } from '../../../../src/objects/Mesh.js'; diff --git a/test/unit/src/objects/LOD.tests.js b/test/unit/src/objects/LOD.tests.js index b8da09d2c6764a..8d5b80ca42b8eb 100644 --- a/test/unit/src/objects/LOD.tests.js +++ b/test/unit/src/objects/LOD.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Object3D } from '../../../../src/core/Object3D.js'; import { Raycaster } from '../../../../src/core/Raycaster.js'; import { LOD } from '../../../../src/objects/LOD.js'; diff --git a/test/unit/src/objects/Line.tests.js b/test/unit/src/objects/Line.tests.js index b36e0ff1afe16e..e410ecae8d271c 100644 --- a/test/unit/src/objects/Line.tests.js +++ b/test/unit/src/objects/Line.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Line } from '../../../../src/objects/Line.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/objects/LineLoop.tests.js b/test/unit/src/objects/LineLoop.tests.js index 0060bc4bcac00a..1c070cbad29201 100644 --- a/test/unit/src/objects/LineLoop.tests.js +++ b/test/unit/src/objects/LineLoop.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Object3D } from '../../../../src/core/Object3D.js'; import { Line } from '../../../../src/objects/Line.js'; import { LineLoop } from '../../../../src/objects/LineLoop.js'; diff --git a/test/unit/src/objects/LineSegments.tests.js b/test/unit/src/objects/LineSegments.tests.js index db45d77c3b58f3..6ffeb36d643bab 100644 --- a/test/unit/src/objects/LineSegments.tests.js +++ b/test/unit/src/objects/LineSegments.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Object3D } from '../../../../src/core/Object3D.js'; import { Line } from '../../../../src/objects/Line.js'; import { LineSegments } from '../../../../src/objects/LineSegments.js'; diff --git a/test/unit/src/objects/Mesh.tests.js b/test/unit/src/objects/Mesh.tests.js index c0dae5d9b7f86b..1893812c7846d8 100644 --- a/test/unit/src/objects/Mesh.tests.js +++ b/test/unit/src/objects/Mesh.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Object3D } from '../../../../src/core/Object3D.js'; import { Mesh } from '../../../../src/objects/Mesh.js'; import { Raycaster } from '../../../../src/core/Raycaster.js'; diff --git a/test/unit/src/objects/Points.tests.js b/test/unit/src/objects/Points.tests.js index 434ca86dd730c2..2dc6ba38198a0c 100644 --- a/test/unit/src/objects/Points.tests.js +++ b/test/unit/src/objects/Points.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Object3D } from '../../../../src/core/Object3D.js'; import { Material } from '../../../../src/materials/Material.js'; import { Points } from '../../../../src/objects/Points.js'; diff --git a/test/unit/src/objects/Skeleton.tests.js b/test/unit/src/objects/Skeleton.tests.js index b3c327a595a5fe..ef1f5fb3f5622b 100644 --- a/test/unit/src/objects/Skeleton.tests.js +++ b/test/unit/src/objects/Skeleton.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Skeleton } from '../../../../src/objects/Skeleton.js'; export default QUnit.module( 'Objects', () => { diff --git a/test/unit/src/objects/SkinnedMesh.tests.js b/test/unit/src/objects/SkinnedMesh.tests.js index 831360236af246..775a5cff3627b7 100644 --- a/test/unit/src/objects/SkinnedMesh.tests.js +++ b/test/unit/src/objects/SkinnedMesh.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Object3D } from '../../../../src/core/Object3D.js'; import { Mesh } from '../../../../src/objects/Mesh.js'; import { SkinnedMesh } from '../../../../src/objects/SkinnedMesh.js'; diff --git a/test/unit/src/objects/Sprite.tests.js b/test/unit/src/objects/Sprite.tests.js index eb8670338914a6..7d0fbba4f041ac 100644 --- a/test/unit/src/objects/Sprite.tests.js +++ b/test/unit/src/objects/Sprite.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Object3D } from '../../../../src/core/Object3D.js'; import { Sprite } from '../../../../src/objects/Sprite.js'; diff --git a/test/unit/src/renderers/WebGL3DRenderTarget.tests.js b/test/unit/src/renderers/WebGL3DRenderTarget.tests.js index 49bb0d3211cd77..f7fcbbc535c016 100644 --- a/test/unit/src/renderers/WebGL3DRenderTarget.tests.js +++ b/test/unit/src/renderers/WebGL3DRenderTarget.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { NearestFilter } from '../../../../src/constants.js'; import { WebGL3DRenderTarget } from '../../../../src/renderers/WebGL3DRenderTarget.js'; diff --git a/test/unit/src/renderers/WebGLArrayRenderTarget.tests.js b/test/unit/src/renderers/WebGLArrayRenderTarget.tests.js index a9297b3a84dc39..e12191e68beb01 100644 --- a/test/unit/src/renderers/WebGLArrayRenderTarget.tests.js +++ b/test/unit/src/renderers/WebGLArrayRenderTarget.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { NearestFilter } from '../../../../src/constants.js'; import { WebGLArrayRenderTarget } from '../../../../src/renderers/WebGLArrayRenderTarget.js'; diff --git a/test/unit/src/renderers/WebGLCubeRenderTarget.tests.js b/test/unit/src/renderers/WebGLCubeRenderTarget.tests.js index 9a626f345c63d0..cc3ed5aab25ffc 100644 --- a/test/unit/src/renderers/WebGLCubeRenderTarget.tests.js +++ b/test/unit/src/renderers/WebGLCubeRenderTarget.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { NearestFilter } from '../../../../src/constants.js'; import { WebGLCubeRenderTarget } from '../../../../src/renderers/WebGLCubeRenderTarget.js'; diff --git a/test/unit/src/renderers/WebGLRenderTarget.tests.js b/test/unit/src/renderers/WebGLRenderTarget.tests.js index 97d445ea8e1d6c..0dba56a8b92d43 100644 --- a/test/unit/src/renderers/WebGLRenderTarget.tests.js +++ b/test/unit/src/renderers/WebGLRenderTarget.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { WebGLRenderTarget } from '../../../../src/renderers/WebGLRenderTarget.js'; import { EventDispatcher } from '../../../../src/core/EventDispatcher.js'; diff --git a/test/unit/src/renderers/WebGLRenderer.tests.js b/test/unit/src/renderers/WebGLRenderer.tests.js index 5f27110555d985..66c02a4391eabf 100644 --- a/test/unit/src/renderers/WebGLRenderer.tests.js +++ b/test/unit/src/renderers/WebGLRenderer.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - export default QUnit.module( 'Renderers', () => { QUnit.module( 'WebGLRenderer', () => { diff --git a/test/unit/src/renderers/shaders/ShaderChunk.tests.js b/test/unit/src/renderers/shaders/ShaderChunk.tests.js index c71678d76ed1f1..422388ed6ba14b 100644 --- a/test/unit/src/renderers/shaders/ShaderChunk.tests.js +++ b/test/unit/src/renderers/shaders/ShaderChunk.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ShaderChunk } from '../../../../../src/renderers/shaders/ShaderChunk.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/shaders/ShaderLib.tests.js b/test/unit/src/renderers/shaders/ShaderLib.tests.js index 36e23084fa7f54..715a32db6db9fc 100644 --- a/test/unit/src/renderers/shaders/ShaderLib.tests.js +++ b/test/unit/src/renderers/shaders/ShaderLib.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { ShaderLib } from '../../../../../src/renderers/shaders/ShaderLib.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/shaders/UniformsLib.tests.js b/test/unit/src/renderers/shaders/UniformsLib.tests.js index fd3c19fb3c5671..d0693590ae913f 100644 --- a/test/unit/src/renderers/shaders/UniformsLib.tests.js +++ b/test/unit/src/renderers/shaders/UniformsLib.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { UniformsLib } from '../../../../../src/renderers/shaders/UniformsLib.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/shaders/UniformsUtils.tests.js b/test/unit/src/renderers/shaders/UniformsUtils.tests.js index 56c0950b200285..8a259b18f16ef2 100644 --- a/test/unit/src/renderers/shaders/UniformsUtils.tests.js +++ b/test/unit/src/renderers/shaders/UniformsUtils.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { UniformsUtils } from '../../../../../src/renderers/shaders/UniformsUtils.js'; import { Color } from '../../../../../src/math/Color.js'; import { Vector2 } from '../../../../../src/math/Vector2.js'; diff --git a/test/unit/src/renderers/webgl/WebGLAttributes.tests.js b/test/unit/src/renderers/webgl/WebGLAttributes.tests.js index c2225dbfb73762..acb47b393dc20a 100644 --- a/test/unit/src/renderers/webgl/WebGLAttributes.tests.js +++ b/test/unit/src/renderers/webgl/WebGLAttributes.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLAttributes } from '../../../../../src/renderers/webgl/WebGLAttributes.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLBackground.tests.js b/test/unit/src/renderers/webgl/WebGLBackground.tests.js index b7950058b82098..bded1d63a965e9 100644 --- a/test/unit/src/renderers/webgl/WebGLBackground.tests.js +++ b/test/unit/src/renderers/webgl/WebGLBackground.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLBackground } from '../../../../../src/renderers/webgl/WebGLBackground.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLBufferRenderer.tests.js b/test/unit/src/renderers/webgl/WebGLBufferRenderer.tests.js index 8e75e06ebd1f93..18444cb10e0c9a 100644 --- a/test/unit/src/renderers/webgl/WebGLBufferRenderer.tests.js +++ b/test/unit/src/renderers/webgl/WebGLBufferRenderer.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLBufferRenderer } from '../../../../../src/renderers/webgl/WebGLBufferRenderer.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLCapabilities.tests.js b/test/unit/src/renderers/webgl/WebGLCapabilities.tests.js index 2c9e4b26d6946a..4f4175fbff27ca 100644 --- a/test/unit/src/renderers/webgl/WebGLCapabilities.tests.js +++ b/test/unit/src/renderers/webgl/WebGLCapabilities.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLCapabilities } from '../../../../../src/renderers/webgl/WebGLCapabilities.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLClipping.tests.js b/test/unit/src/renderers/webgl/WebGLClipping.tests.js index 952cf16abf7a93..c8bab9eb83fc44 100644 --- a/test/unit/src/renderers/webgl/WebGLClipping.tests.js +++ b/test/unit/src/renderers/webgl/WebGLClipping.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLClipping } from '../../../../../src/renderers/webgl/WebGLClipping.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLExtensions.tests.js b/test/unit/src/renderers/webgl/WebGLExtensions.tests.js index 53648935d5ba6d..8413d60aa887a6 100644 --- a/test/unit/src/renderers/webgl/WebGLExtensions.tests.js +++ b/test/unit/src/renderers/webgl/WebGLExtensions.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { WebGLExtensions } from '../../../../../src/renderers/webgl/WebGLExtensions.js'; import { CONSOLE_LEVEL } from '../../../utils/console-wrapper.js'; diff --git a/test/unit/src/renderers/webgl/WebGLGeometries.tests.js b/test/unit/src/renderers/webgl/WebGLGeometries.tests.js index 3f6251c504978c..f7b8eb95dae0f9 100644 --- a/test/unit/src/renderers/webgl/WebGLGeometries.tests.js +++ b/test/unit/src/renderers/webgl/WebGLGeometries.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLGeometries } from '../../../../../src/renderers/webgl/WebGLGeometries.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLIndexedBufferRenderer.tests.js b/test/unit/src/renderers/webgl/WebGLIndexedBufferRenderer.tests.js index cf4d8d1f1d3e1c..1d97a7e904355b 100644 --- a/test/unit/src/renderers/webgl/WebGLIndexedBufferRenderer.tests.js +++ b/test/unit/src/renderers/webgl/WebGLIndexedBufferRenderer.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLIndexedBufferRenderer } from '../../../../../src/renderers/webgl/WebGLIndexedBufferRenderer.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLLights.tests.js b/test/unit/src/renderers/webgl/WebGLLights.tests.js index ecf965afcef9d4..adbdc75a5924f2 100644 --- a/test/unit/src/renderers/webgl/WebGLLights.tests.js +++ b/test/unit/src/renderers/webgl/WebGLLights.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLLights } from '../../../../../src/renderers/webgl/WebGLLights.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLMorphtargets.tests.js b/test/unit/src/renderers/webgl/WebGLMorphtargets.tests.js index 363dbf4cc1a25b..fa7e0e2d1d5fbc 100644 --- a/test/unit/src/renderers/webgl/WebGLMorphtargets.tests.js +++ b/test/unit/src/renderers/webgl/WebGLMorphtargets.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLMorphtargets } from '../../../../../src/renderers/webgl/WebGLMorphtargets.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLObjects.tests.js b/test/unit/src/renderers/webgl/WebGLObjects.tests.js index a75e0571e73784..64db6991d2daeb 100644 --- a/test/unit/src/renderers/webgl/WebGLObjects.tests.js +++ b/test/unit/src/renderers/webgl/WebGLObjects.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLObjects } from '../../../../../src/renderers/webgl/WebGLObjects.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLProgram.tests.js b/test/unit/src/renderers/webgl/WebGLProgram.tests.js index 0085b13fade849..33a8670983f915 100644 --- a/test/unit/src/renderers/webgl/WebGLProgram.tests.js +++ b/test/unit/src/renderers/webgl/WebGLProgram.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLProgram } from '../../../../../src/renderers/webgl/WebGLProgram.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLPrograms.tests.js b/test/unit/src/renderers/webgl/WebGLPrograms.tests.js index 31e55ecac529e3..03b9f7cafcb56b 100644 --- a/test/unit/src/renderers/webgl/WebGLPrograms.tests.js +++ b/test/unit/src/renderers/webgl/WebGLPrograms.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLPrograms } from '../../../../../src/renderers/webgl/WebGLPrograms.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLProperties.tests.js b/test/unit/src/renderers/webgl/WebGLProperties.tests.js index a01eb89e41e6b8..d77aa90ece8f93 100644 --- a/test/unit/src/renderers/webgl/WebGLProperties.tests.js +++ b/test/unit/src/renderers/webgl/WebGLProperties.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLProperties } from '../../../../../src/renderers/webgl/WebGLProperties.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLRenderLists.tests.js b/test/unit/src/renderers/webgl/WebGLRenderLists.tests.js index 0532e75ea2d5ad..9c2cdf13a38e38 100644 --- a/test/unit/src/renderers/webgl/WebGLRenderLists.tests.js +++ b/test/unit/src/renderers/webgl/WebGLRenderLists.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { WebGLRenderLists, WebGLRenderList } from '../../../../../src/renderers/webgl/WebGLRenderLists.js'; import { Scene } from '../../../../../src/scenes/Scene.js'; diff --git a/test/unit/src/renderers/webgl/WebGLShader.tests.js b/test/unit/src/renderers/webgl/WebGLShader.tests.js index 449b10bbdec262..3ca85245ca19df 100644 --- a/test/unit/src/renderers/webgl/WebGLShader.tests.js +++ b/test/unit/src/renderers/webgl/WebGLShader.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLShader } from '../../../../../src/renderers/webgl/WebGLShader.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLShadowMap.tests.js b/test/unit/src/renderers/webgl/WebGLShadowMap.tests.js index 7d26108776a94c..4d2846c25ac91f 100644 --- a/test/unit/src/renderers/webgl/WebGLShadowMap.tests.js +++ b/test/unit/src/renderers/webgl/WebGLShadowMap.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLShadowMap } from '../../../../../src/renderers/webgl/WebGLShadowMap.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLState.tests.js b/test/unit/src/renderers/webgl/WebGLState.tests.js index c71480d65e4d4f..23b1bfab1c8326 100644 --- a/test/unit/src/renderers/webgl/WebGLState.tests.js +++ b/test/unit/src/renderers/webgl/WebGLState.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLState } from '../../../../../src/renderers/webgl/WebGLState.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLTextures.tests.js b/test/unit/src/renderers/webgl/WebGLTextures.tests.js index 336e40d7222f91..7241c29cfa6bf3 100644 --- a/test/unit/src/renderers/webgl/WebGLTextures.tests.js +++ b/test/unit/src/renderers/webgl/WebGLTextures.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLTextures } from '../../../../../src/renderers/webgl/WebGLTextures.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLUniforms.tests.js b/test/unit/src/renderers/webgl/WebGLUniforms.tests.js index 828d4178e18964..191c43cb15e88b 100644 --- a/test/unit/src/renderers/webgl/WebGLUniforms.tests.js +++ b/test/unit/src/renderers/webgl/WebGLUniforms.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLUniforms } from '../../../../../src/renderers/webgl/WebGLUniforms.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/renderers/webgl/WebGLUtils.tests.js b/test/unit/src/renderers/webgl/WebGLUtils.tests.js index 2ebc7e08d7b435..ffe30e2989b0f3 100644 --- a/test/unit/src/renderers/webgl/WebGLUtils.tests.js +++ b/test/unit/src/renderers/webgl/WebGLUtils.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - // import { WebGLUtils } from '../../../../../src/renderers/webgl/WebGLUtils.js'; export default QUnit.module( 'Renderers', () => { diff --git a/test/unit/src/scenes/Fog.tests.js b/test/unit/src/scenes/Fog.tests.js index 0401b857c10fdb..4fe38b1896425f 100644 --- a/test/unit/src/scenes/Fog.tests.js +++ b/test/unit/src/scenes/Fog.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Fog } from '../../../../src/scenes/Fog.js'; export default QUnit.module( 'Scenes', () => { diff --git a/test/unit/src/scenes/FogExp2.tests.js b/test/unit/src/scenes/FogExp2.tests.js index 88f61ff7266da5..e9d52bdf3f1e7f 100644 --- a/test/unit/src/scenes/FogExp2.tests.js +++ b/test/unit/src/scenes/FogExp2.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { FogExp2 } from '../../../../src/scenes/FogExp2.js'; export default QUnit.module( 'Scenes', () => { diff --git a/test/unit/src/scenes/Scene.tests.js b/test/unit/src/scenes/Scene.tests.js index f33933bcc44221..c88b2484a4ed73 100644 --- a/test/unit/src/scenes/Scene.tests.js +++ b/test/unit/src/scenes/Scene.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Scene } from '../../../../src/scenes/Scene.js'; import { Object3D } from '../../../../src/core/Object3D.js'; diff --git a/test/unit/src/textures/CanvasTexture.tests.js b/test/unit/src/textures/CanvasTexture.tests.js index 34b961a1550190..79cae5fe01403a 100644 --- a/test/unit/src/textures/CanvasTexture.tests.js +++ b/test/unit/src/textures/CanvasTexture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CanvasTexture } from '../../../../src/textures/CanvasTexture.js'; import { Texture } from '../../../../src/textures/Texture.js'; diff --git a/test/unit/src/textures/CompressedArrayTexture.tests.js b/test/unit/src/textures/CompressedArrayTexture.tests.js index 55e7d0a0d1c0cf..a034105bb6d8b9 100644 --- a/test/unit/src/textures/CompressedArrayTexture.tests.js +++ b/test/unit/src/textures/CompressedArrayTexture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CompressedArrayTexture } from '../../../../src/textures/CompressedArrayTexture.js'; import { CompressedTexture } from '../../../../src/textures/CompressedTexture.js'; diff --git a/test/unit/src/textures/CompressedTexture.tests.js b/test/unit/src/textures/CompressedTexture.tests.js index d93dbde13365d9..4a6ad05904f9b1 100644 --- a/test/unit/src/textures/CompressedTexture.tests.js +++ b/test/unit/src/textures/CompressedTexture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CompressedTexture } from '../../../../src/textures/CompressedTexture.js'; import { Texture } from '../../../../src/textures/Texture.js'; diff --git a/test/unit/src/textures/CubeTexture.tests.js b/test/unit/src/textures/CubeTexture.tests.js index a5d990af71c084..cceabbfbd14259 100644 --- a/test/unit/src/textures/CubeTexture.tests.js +++ b/test/unit/src/textures/CubeTexture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { CubeTexture } from '../../../../src/textures/CubeTexture.js'; import { Texture } from '../../../../src/textures/Texture.js'; diff --git a/test/unit/src/textures/Data3DTexture.tests.js b/test/unit/src/textures/Data3DTexture.tests.js index 97db8b018d0871..2f3ffce0b8a8ad 100644 --- a/test/unit/src/textures/Data3DTexture.tests.js +++ b/test/unit/src/textures/Data3DTexture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Data3DTexture } from '../../../../src/textures/Data3DTexture.js'; import { Texture } from '../../../../src/textures/Texture.js'; diff --git a/test/unit/src/textures/DataArrayTexture.tests.js b/test/unit/src/textures/DataArrayTexture.tests.js index 51fc99df541a15..860de59dcd2272 100644 --- a/test/unit/src/textures/DataArrayTexture.tests.js +++ b/test/unit/src/textures/DataArrayTexture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { DataArrayTexture } from '../../../../src/textures/DataArrayTexture.js'; import { Texture } from '../../../../src/textures/Texture.js'; diff --git a/test/unit/src/textures/DataTexture.tests.js b/test/unit/src/textures/DataTexture.tests.js index 396dadd40b06e9..1df11d6817557e 100644 --- a/test/unit/src/textures/DataTexture.tests.js +++ b/test/unit/src/textures/DataTexture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { DataTexture } from '../../../../src/textures/DataTexture.js'; import { Texture } from '../../../../src/textures/Texture.js'; diff --git a/test/unit/src/textures/DepthTexture.tests.js b/test/unit/src/textures/DepthTexture.tests.js index a6413e658c32af..c4ad45dce46111 100644 --- a/test/unit/src/textures/DepthTexture.tests.js +++ b/test/unit/src/textures/DepthTexture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { DepthTexture } from '../../../../src/textures/DepthTexture.js'; import { Texture } from '../../../../src/textures/Texture.js'; diff --git a/test/unit/src/textures/FramebufferTexture.tests.js b/test/unit/src/textures/FramebufferTexture.tests.js index fea84c8b099a49..445cd3fdc24365 100644 --- a/test/unit/src/textures/FramebufferTexture.tests.js +++ b/test/unit/src/textures/FramebufferTexture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { FramebufferTexture } from '../../../../src/textures/FramebufferTexture.js'; import { Texture } from '../../../../src/textures/Texture.js'; diff --git a/test/unit/src/textures/Source.tests.js b/test/unit/src/textures/Source.tests.js index 3c1b92d73530ab..77890156fe852f 100644 --- a/test/unit/src/textures/Source.tests.js +++ b/test/unit/src/textures/Source.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Source } from '../../../../src/textures/Source.js'; export default QUnit.module( 'Textures', () => { diff --git a/test/unit/src/textures/Texture.tests.js b/test/unit/src/textures/Texture.tests.js index a34dd4487c7c8e..94b013278b92ef 100644 --- a/test/unit/src/textures/Texture.tests.js +++ b/test/unit/src/textures/Texture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { Texture } from '../../../../src/textures/Texture.js'; import { EventDispatcher } from '../../../../src/core/EventDispatcher.js'; diff --git a/test/unit/src/textures/VideoTexture.tests.js b/test/unit/src/textures/VideoTexture.tests.js index 835a15e0882fec..7bf5fa16008fba 100644 --- a/test/unit/src/textures/VideoTexture.tests.js +++ b/test/unit/src/textures/VideoTexture.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { VideoTexture } from '../../../../src/textures/VideoTexture.js'; import { Texture } from '../../../../src/textures/Texture.js'; diff --git a/test/unit/src/utils.tests.js b/test/unit/src/utils.tests.js index ea0f8d3aa0689a..233ab88d4bd5fa 100644 --- a/test/unit/src/utils.tests.js +++ b/test/unit/src/utils.tests.js @@ -1,5 +1,3 @@ -/* global QUnit */ - import { arrayMin, arrayMax, getTypedArray } from '../../../src/utils.js'; QUnit.module( 'utils', () => { diff --git a/test/unit/utils/qunit-utils.js b/test/unit/utils/qunit-utils.js index 8773dbc23f1da8..4095ed7db2553b 100644 --- a/test/unit/utils/qunit-utils.js +++ b/test/unit/utils/qunit-utils.js @@ -1,7 +1,5 @@ // // Custom QUnit assertions. -///* global QUnit */ - import { SmartComparer } from './SmartComparer.js'; import { ObjectLoader } from '../../../src/loaders/ObjectLoader.js'; diff --git a/utils/docs/template/publish.js b/utils/docs/template/publish.js index 2c3e756d848e0c..a984d946bdaf41 100644 --- a/utils/docs/template/publish.js +++ b/utils/docs/template/publish.js @@ -340,7 +340,7 @@ function getFullAugmentsChain( doclet ) { } // Start with the immediate parent - const parentName = doclet.augments[0]; + const parentName = doclet.augments[ 0 ]; chain.push( parentName ); // Recursively find the parent's ancestors @@ -348,7 +348,7 @@ function getFullAugmentsChain( doclet ) { if ( parentDoclet && parentDoclet.length > 0 ) { - const parentChain = getFullAugmentsChain( parentDoclet[0] ); + const parentChain = getFullAugmentsChain( parentDoclet[ 0 ] ); chain.unshift( ...parentChain ); } @@ -367,7 +367,7 @@ function generate( title, docs, filename, resolveLinks ) { env: env, title: title, docs: docs, - augments: docs && docs[0] ? getFullAugmentsChain( docs[0] ) : null + augments: docs && docs[ 0 ] ? getFullAugmentsChain( docs[ 0 ] ) : null }; // Put HTML files in pages/ subdirectory diff --git a/utils/packLDrawModel.mjs b/utils/packLDrawModel.mjs index 743084edb418b2..c4b315115142dc 100644 --- a/utils/packLDrawModel.mjs +++ b/utils/packLDrawModel.mjs @@ -16,6 +16,8 @@ * */ +/* global process, console */ + const ldrawPath = './'; const materialsFileName = 'LDConfig.ldr'; @@ -125,7 +127,7 @@ function parseObject( fileName, isRoot ) { objectContent = fs.readFileSync( absoluteObjectPath, { encoding: 'utf8' } ); break; - } catch ( e ) { + } catch ( e ) { // eslint-disable-line no-unused-vars prefix = 'parts/'; absoluteObjectPath = path.join( ldrawPath, prefix, fileName ); @@ -135,7 +137,7 @@ function parseObject( fileName, isRoot ) { objectContent = fs.readFileSync( absoluteObjectPath, { encoding: 'utf8' } ); break; - } catch ( e ) { + } catch ( e ) { // eslint-disable-line no-unused-vars prefix = 'p/'; absoluteObjectPath = path.join( ldrawPath, prefix, fileName ); @@ -145,7 +147,7 @@ function parseObject( fileName, isRoot ) { objectContent = fs.readFileSync( absoluteObjectPath, { encoding: 'utf8' } ); break; - } catch ( e ) { + } catch ( e ) { // eslint-disable-line no-unused-vars try { @@ -155,7 +157,7 @@ function parseObject( fileName, isRoot ) { objectContent = fs.readFileSync( absoluteObjectPath, { encoding: 'utf8' } ); break; - } catch ( e ) { + } catch ( e ) { // eslint-disable-line no-unused-vars if ( attempt === 1 ) { From ece4db1b758e159b410f2200a52a9ddd5a2e0e52 Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Tue, 9 Dec 2025 12:11:29 +0100 Subject: [PATCH 6/6] ESLint: Improve config. (#32520) --- editor/index.html | 2 +- editor/js/Script.js | 2 +- editor/js/Sidebar.Material.js | 4 ++-- editor/js/Sidebar.Object.js | 4 ++-- editor/sw.js | 4 ++-- eslint.config.js | 6 ++++-- examples/jsm/capabilities/WebGL.js | 4 ++-- examples/jsm/helpers/ViewHelper.js | 2 +- examples/jsm/loaders/LDrawLoader.js | 2 +- examples/jsm/loaders/TDSLoader.js | 2 +- examples/jsm/loaders/VRMLLoader.js | 4 ++-- examples/jsm/objects/MarchingCubes.js | 2 +- manual/examples/3dlut-base-cube-maker.html | 2 +- manual/examples/resources/lessons-helper.js | 6 +++--- .../tools/geo-picking/make-geo-picking-texture.js | 1 - src/animation/KeyframeTrack.js | 2 +- src/animation/tracks/BooleanKeyframeTrack.js | 2 +- src/animation/tracks/ColorKeyframeTrack.js | 2 +- src/animation/tracks/NumberKeyframeTrack.js | 2 +- src/animation/tracks/QuaternionKeyframeTrack.js | 2 +- src/animation/tracks/StringKeyframeTrack.js | 2 +- src/animation/tracks/VectorKeyframeTrack.js | 2 +- src/nodes/gpgpu/SubgroupFunctionNode.js | 2 +- src/objects/Line.js | 2 +- src/objects/Mesh.js | 2 +- src/objects/Points.js | 2 +- src/renderers/webgl/WebGLTextures.js | 2 +- src/renderers/webgpu/utils/WebGPUPipelineUtils.js | 2 +- src/renderers/webgpu/utils/WebGPUTextureUtils.js | 2 +- test/e2e/puppeteer.js | 14 +++++++------- 30 files changed, 45 insertions(+), 44 deletions(-) diff --git a/editor/index.html b/editor/index.html index dde921d7faebc7..21768496d07ee1 100644 --- a/editor/index.html +++ b/editor/index.html @@ -245,7 +245,7 @@ navigator.serviceWorker.register( 'sw.js' ); - } catch ( error ) { // eslint-disable-line no-unused-vars + } catch ( error ) { } diff --git a/editor/js/Script.js b/editor/js/Script.js index 93101809d09414..128e97abb8472e 100644 --- a/editor/js/Script.js +++ b/editor/js/Script.js @@ -212,7 +212,7 @@ function Script( editor ) { jsonlint.parse( string ); - } catch ( error ) { // eslint-disable-line no-unused-vars + } catch ( error ) { // ignore failed error recovery diff --git a/editor/js/Sidebar.Material.js b/editor/js/Sidebar.Material.js index f46923174cdf17..1320348c4371c4 100644 --- a/editor/js/Sidebar.Material.js +++ b/editor/js/Sidebar.Material.js @@ -409,7 +409,7 @@ function SidebarMaterial( editor ) { materialUserData.dom.classList.add( 'success' ); materialUserData.dom.classList.remove( 'fail' ); - } catch ( error ) { // eslint-disable-line no-unused-vars + } catch ( error ) { materialUserData.dom.classList.remove( 'success' ); materialUserData.dom.classList.add( 'fail' ); @@ -439,7 +439,7 @@ function SidebarMaterial( editor ) { output = JSON.stringify( output, null, '\t' ); output = output.replace( /[\n\t]+([\d\.e\-\[\]]+)/g, '$1' ); - } catch ( error ) { // eslint-disable-line no-unused-vars + } catch ( error ) { output = JSON.stringify( output ); diff --git a/editor/js/Sidebar.Object.js b/editor/js/Sidebar.Object.js index 2a5c398dce0743..2edd0cca6fda01 100644 --- a/editor/js/Sidebar.Object.js +++ b/editor/js/Sidebar.Object.js @@ -386,7 +386,7 @@ function SidebarObject( editor ) { objectUserData.dom.classList.add( 'success' ); objectUserData.dom.classList.remove( 'fail' ); - } catch ( error ) { // eslint-disable-line no-unused-vars + } catch ( error ) { objectUserData.dom.classList.remove( 'success' ); objectUserData.dom.classList.add( 'fail' ); @@ -415,7 +415,7 @@ function SidebarObject( editor ) { output = JSON.stringify( output, null, '\t' ); output = output.replace( /[\n\t]+([\d\.e\-\[\]]+)/g, '$1' ); - } catch ( error ) { // eslint-disable-line no-unused-vars + } catch ( error ) { output = JSON.stringify( output ); diff --git a/editor/sw.js b/editor/sw.js index 1b797a999f0301..761591a187dc85 100644 --- a/editor/sw.js +++ b/editor/sw.js @@ -239,7 +239,7 @@ self.addEventListener( 'install', async function () { await cache.add( asset ); - } catch ( error ) { // eslint-disable-line no-unused-vars + } catch ( error ) { console.warn( '[SW] Couldn\'t cache:', asset ); @@ -284,7 +284,7 @@ async function networkFirst( request ) { return response; - } catch ( error ) { // eslint-disable-line no-unused-vars + } catch ( error ) { const cachedResponse = await caches.match( request ); diff --git a/eslint.config.js b/eslint.config.js index b78daf792703be..23deab5ddcee10 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -111,8 +111,10 @@ export default [ 'no-fallthrough': 'off', 'no-prototype-builtins': 'off', 'no-loss-of-precision': 'off', - - // 'jsdoc/check-types': 'error', + 'no-unused-vars': [ 'error', { + caughtErrors: 'none', + } ], + 'jsdoc/check-types': 'error', 'jsdoc/require-returns': 'off', 'jsdoc/require-returns-type': 'error', 'jsdoc/require-param-description': 'off', diff --git a/examples/jsm/capabilities/WebGL.js b/examples/jsm/capabilities/WebGL.js index fa9e746f0fef63..f1827999b90a53 100644 --- a/examples/jsm/capabilities/WebGL.js +++ b/examples/jsm/capabilities/WebGL.js @@ -18,7 +18,7 @@ class WebGL { const canvas = document.createElement( 'canvas' ); return !! ( window.WebGL2RenderingContext && canvas.getContext( 'webgl2' ) ); - } catch ( e ) { // eslint-disable-line no-unused-vars + } catch ( e ) { return false; @@ -42,7 +42,7 @@ class WebGL { ctx.drawingBufferColorSpace = colorSpace; return ctx.drawingBufferColorSpace === colorSpace; // deepscan-disable-line SAME_OPERAND_VALUE - } catch ( e ) { // eslint-disable-line no-unused-vars + } catch ( e ) { return false; diff --git a/examples/jsm/helpers/ViewHelper.js b/examples/jsm/helpers/ViewHelper.js index d340ee0607cd5b..653f342006aa82 100644 --- a/examples/jsm/helpers/ViewHelper.js +++ b/examples/jsm/helpers/ViewHelper.js @@ -378,7 +378,7 @@ class ViewHelper extends Object3D { result = typeof OffscreenCanvas !== 'undefined' && ( new OffscreenCanvas( 1, 1 ).getContext( '2d' ) ) !== null; - } catch ( err ) { // eslint-disable-line no-unused-vars + } catch ( err ) { // Ignore any errors diff --git a/examples/jsm/loaders/LDrawLoader.js b/examples/jsm/loaders/LDrawLoader.js index 77dbd7a7558327..087ddf6b9703a9 100644 --- a/examples/jsm/loaders/LDrawLoader.js +++ b/examples/jsm/loaders/LDrawLoader.js @@ -636,7 +636,7 @@ class LDrawParsedCache { const text = await fileLoader.loadAsync( subobjectURL ); return text; - } catch ( _ ) { // eslint-disable-line no-unused-vars + } catch ( _ ) { continue; diff --git a/examples/jsm/loaders/TDSLoader.js b/examples/jsm/loaders/TDSLoader.js index a8120a154bdb3a..aad38e01201393 100644 --- a/examples/jsm/loaders/TDSLoader.js +++ b/examples/jsm/loaders/TDSLoader.js @@ -778,7 +778,7 @@ class Chunk { this.position += next.size; return next; - } catch ( e ) { // eslint-disable-line no-unused-vars + } catch ( e ) { this.debugMessage( 'Unable to read chunk at ' + this.position ); return null; diff --git a/examples/jsm/loaders/VRMLLoader.js b/examples/jsm/loaders/VRMLLoader.js index c109a076c45813..91474dcb54de04 100644 --- a/examples/jsm/loaders/VRMLLoader.js +++ b/examples/jsm/loaders/VRMLLoader.js @@ -3167,8 +3167,8 @@ class VRMLLoader extends Loader { * * @param {BufferGeometry} geometry * @param {number} radius - * @param {array} angles - * @param {array} colors + * @param {Array} angles + * @param {Array} colors * @param {boolean} topDown - Whether to work top down or bottom up. */ function paintFaces( geometry, radius, angles, colors, topDown ) { diff --git a/examples/jsm/objects/MarchingCubes.js b/examples/jsm/objects/MarchingCubes.js index 48dad15caeaeaa..29a405be3eae30 100644 --- a/examples/jsm/objects/MarchingCubes.js +++ b/examples/jsm/objects/MarchingCubes.js @@ -560,7 +560,7 @@ class MarchingCubes extends Mesh { ) : new Color( colors ); - } catch ( err ) { // eslint-disable-line no-unused-vars + } catch ( err ) { ballColor = new Color( ballx, bally, ballz ); diff --git a/manual/examples/3dlut-base-cube-maker.html b/manual/examples/3dlut-base-cube-maker.html index 7fdf4005e67fd9..5137a7b8c88948 100644 --- a/manual/examples/3dlut-base-cube-maker.html +++ b/manual/examples/3dlut-base-cube-maker.html @@ -72,7 +72,7 @@

Color Cube Image Maker

} - } catch ( e ) { // eslint-disable-line no-unused-vars + } catch ( e ) { elem.style.background = 'red'; diff --git a/manual/examples/resources/lessons-helper.js b/manual/examples/resources/lessons-helper.js index 1915779f61beaf..85db77211c1477 100644 --- a/manual/examples/resources/lessons-helper.js +++ b/manual/examples/resources/lessons-helper.js @@ -76,13 +76,13 @@ document.getElementsByTagName( 'html' )[ 0 ].className = 'iframe'; - } catch ( e ) { } // eslint-disable-line no-unused-vars + } catch ( e ) { } try { document.body.className = 'iframe'; - } catch ( e ) { } // eslint-disable-line no-unused-vars + } catch ( e ) { } } @@ -368,7 +368,7 @@ // }); return matcher( lines[ lineNdx ] ); - } catch ( e ) {} // eslint-disable-line no-unused-vars + } catch ( e ) {} } diff --git a/manual/resources/tools/geo-picking/make-geo-picking-texture.js b/manual/resources/tools/geo-picking/make-geo-picking-texture.js index 8582150a5e20e9..93736809101a9d 100644 --- a/manual/resources/tools/geo-picking/make-geo-picking-texture.js +++ b/manual/resources/tools/geo-picking/make-geo-picking-texture.js @@ -3,7 +3,6 @@ /* global shapefile */ /* eslint no-console: off */ -/* eslint no-unused-vars: off */ async function main() { diff --git a/src/animation/KeyframeTrack.js b/src/animation/KeyframeTrack.js index 532b3a86ff310b..74e38bd0d6c5ac 100644 --- a/src/animation/KeyframeTrack.js +++ b/src/animation/KeyframeTrack.js @@ -565,7 +565,7 @@ class KeyframeTrack { /** * The value type name. * - * @type {String} + * @type {string} * @default '' */ KeyframeTrack.prototype.ValueTypeName = ''; diff --git a/src/animation/tracks/BooleanKeyframeTrack.js b/src/animation/tracks/BooleanKeyframeTrack.js index 9f1ddcfea9fb79..c0ad2d3b9d2182 100644 --- a/src/animation/tracks/BooleanKeyframeTrack.js +++ b/src/animation/tracks/BooleanKeyframeTrack.js @@ -29,7 +29,7 @@ class BooleanKeyframeTrack extends KeyframeTrack { /** * The value type name. * - * @type {String} + * @type {string} * @default 'bool' */ BooleanKeyframeTrack.prototype.ValueTypeName = 'bool'; diff --git a/src/animation/tracks/ColorKeyframeTrack.js b/src/animation/tracks/ColorKeyframeTrack.js index ce5afb2b0f6f62..faf63d710c4b4e 100644 --- a/src/animation/tracks/ColorKeyframeTrack.js +++ b/src/animation/tracks/ColorKeyframeTrack.js @@ -26,7 +26,7 @@ class ColorKeyframeTrack extends KeyframeTrack { /** * The value type name. * - * @type {String} + * @type {string} * @default 'color' */ ColorKeyframeTrack.prototype.ValueTypeName = 'color'; diff --git a/src/animation/tracks/NumberKeyframeTrack.js b/src/animation/tracks/NumberKeyframeTrack.js index 1b4bb5a1aaf861..21d9f9fb8f90ff 100644 --- a/src/animation/tracks/NumberKeyframeTrack.js +++ b/src/animation/tracks/NumberKeyframeTrack.js @@ -26,7 +26,7 @@ class NumberKeyframeTrack extends KeyframeTrack { /** * The value type name. * - * @type {String} + * @type {string} * @default 'number' */ NumberKeyframeTrack.prototype.ValueTypeName = 'number'; diff --git a/src/animation/tracks/QuaternionKeyframeTrack.js b/src/animation/tracks/QuaternionKeyframeTrack.js index e417ba0f9a3db7..6f574a3bae2481 100644 --- a/src/animation/tracks/QuaternionKeyframeTrack.js +++ b/src/animation/tracks/QuaternionKeyframeTrack.js @@ -40,7 +40,7 @@ class QuaternionKeyframeTrack extends KeyframeTrack { /** * The value type name. * - * @type {String} + * @type {string} * @default 'quaternion' */ QuaternionKeyframeTrack.prototype.ValueTypeName = 'quaternion'; diff --git a/src/animation/tracks/StringKeyframeTrack.js b/src/animation/tracks/StringKeyframeTrack.js index 65bdc3270c029d..cf84af12a7e533 100644 --- a/src/animation/tracks/StringKeyframeTrack.js +++ b/src/animation/tracks/StringKeyframeTrack.js @@ -29,7 +29,7 @@ class StringKeyframeTrack extends KeyframeTrack { /** * The value type name. * - * @type {String} + * @type {string} * @default 'string' */ StringKeyframeTrack.prototype.ValueTypeName = 'string'; diff --git a/src/animation/tracks/VectorKeyframeTrack.js b/src/animation/tracks/VectorKeyframeTrack.js index 5e8e7baac79853..330e9b196e8c12 100644 --- a/src/animation/tracks/VectorKeyframeTrack.js +++ b/src/animation/tracks/VectorKeyframeTrack.js @@ -26,7 +26,7 @@ class VectorKeyframeTrack extends KeyframeTrack { /** * The value type name. * - * @type {String} + * @type {string} * @default 'vector' */ VectorKeyframeTrack.prototype.ValueTypeName = 'vector'; diff --git a/src/nodes/gpgpu/SubgroupFunctionNode.js b/src/nodes/gpgpu/SubgroupFunctionNode.js index 460175818bf660..a53d1c582b257c 100644 --- a/src/nodes/gpgpu/SubgroupFunctionNode.js +++ b/src/nodes/gpgpu/SubgroupFunctionNode.js @@ -35,7 +35,7 @@ class SubgroupFunctionNode extends TempNode { /** * The subgroup/wave intrinsic method to construct. * - * @type {String} + * @type {string} */ this.method = method; diff --git a/src/objects/Line.js b/src/objects/Line.js index c1177169845c6a..cb5df00e4779b4 100644 --- a/src/objects/Line.js +++ b/src/objects/Line.js @@ -81,7 +81,7 @@ class Line extends Object3D { * morph targets name, the value its attribute index. This member is `undefined` * by default and only set when morph targets are detected in the geometry. * - * @type {Object|undefined} + * @type {Object|undefined} * @default undefined */ this.morphTargetDictionary = undefined; diff --git a/src/objects/Mesh.js b/src/objects/Mesh.js index 4e7b3aec8ed8d7..2f5f105ac58a44 100644 --- a/src/objects/Mesh.js +++ b/src/objects/Mesh.js @@ -79,7 +79,7 @@ class Mesh extends Object3D { * morph targets name, the value its attribute index. This member is `undefined` * by default and only set when morph targets are detected in the geometry. * - * @type {Object|undefined} + * @type {Object|undefined} * @default undefined */ this.morphTargetDictionary = undefined; diff --git a/src/objects/Points.js b/src/objects/Points.js index 01db18ed5195cf..3ebc0852e6c415 100644 --- a/src/objects/Points.js +++ b/src/objects/Points.js @@ -59,7 +59,7 @@ class Points extends Object3D { * morph targets name, the value its attribute index. This member is `undefined` * by default and only set when morph targets are detected in the geometry. * - * @type {Object|undefined} + * @type {Object|undefined} * @default undefined */ this.morphTargetDictionary = undefined; diff --git a/src/renderers/webgl/WebGLTextures.js b/src/renderers/webgl/WebGLTextures.js index e29b1799cd5422..08ba467679a24c 100644 --- a/src/renderers/webgl/WebGLTextures.js +++ b/src/renderers/webgl/WebGLTextures.js @@ -27,7 +27,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, && ( new OffscreenCanvas( 1, 1 ).getContext( '2d' ) ) !== null; - } catch ( err ) { // eslint-disable-line no-unused-vars + } catch ( err ) { // Ignore any errors diff --git a/src/renderers/webgpu/utils/WebGPUPipelineUtils.js b/src/renderers/webgpu/utils/WebGPUPipelineUtils.js index 1f08cf0328b3c8..5b1a2e4c4da2ad 100644 --- a/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +++ b/src/renderers/webgpu/utils/WebGPUPipelineUtils.js @@ -271,7 +271,7 @@ class WebGPUPipelineUtils { pipelineData.pipeline = await device.createRenderPipelineAsync( pipelineDescriptor ); - } catch ( err ) { } // eslint-disable-line no-unused-vars + } catch ( err ) { } const errorScope = await device.popErrorScope(); diff --git a/src/renderers/webgpu/utils/WebGPUTextureUtils.js b/src/renderers/webgpu/utils/WebGPUTextureUtils.js index 3014d763333ea4..fa021914e561b5 100644 --- a/src/renderers/webgpu/utils/WebGPUTextureUtils.js +++ b/src/renderers/webgpu/utils/WebGPUTextureUtils.js @@ -791,7 +791,7 @@ class WebGPUTextureUtils { // try/catch has been added to fix bad video frame data on certain devices, see #32391 - } catch ( _ ) {} // eslint-disable-line no-unused-vars + } catch ( _ ) {} } diff --git a/test/e2e/puppeteer.js b/test/e2e/puppeteer.js index b625319f463dfe..466e802a678c35 100644 --- a/test/e2e/puppeteer.js +++ b/test/e2e/puppeteer.js @@ -131,7 +131,7 @@ process.on( 'SIGINT', async () => { await browser.close(); - } catch ( e ) {} // eslint-disable-line no-unused-vars + } catch ( e ) {} } @@ -148,13 +148,13 @@ async function main() { await fs.rm( 'test/e2e/output-screenshots', { recursive: true, force: true } ); - } catch ( e ) {} // eslint-disable-line no-unused-vars + } catch ( e ) {} try { await fs.mkdir( 'test/e2e/output-screenshots' ); - } catch ( e ) {} // eslint-disable-line no-unused-vars + } catch ( e ) {} /* Find files */ @@ -320,7 +320,7 @@ async function preparePage( page, injection, builds, errorMessages ) { return await arg.executionContext().evaluate( arg => arg instanceof Error ? arg.message : arg, arg ); - } catch ( e ) { // eslint-disable-line no-unused-vars + } catch ( e ) { // Execution context might have been already destroyed @@ -377,7 +377,7 @@ async function preparePage( page, injection, builds, errorMessages ) { } - } catch ( e ) {} // eslint-disable-line no-unused-vars + } catch ( e ) {} } ); @@ -511,7 +511,7 @@ async function makeAttempt( page, failedScreenshots, cleanPage, isMakeScreenshot expected = ( await Jimp.read( `examples/screenshots/${ file }.jpg`, { quality: jpgQuality } ) ); - } catch ( e ) { // eslint-disable-line no-unused-vars + } catch ( e ) { await screenshot.write( `test/e2e/output-screenshots/${ file }-actual.jpg` ); throw new Error( `Screenshot does not exist: ${ file }` ); @@ -530,7 +530,7 @@ async function makeAttempt( page, failedScreenshots, cleanPage, isMakeScreenshot alpha: 0.2 } ); - } catch ( e ) { // eslint-disable-line no-unused-vars + } catch ( e ) { await screenshot.write( `test/e2e/output-screenshots/${ file }-actual.jpg` ); await expected.write( `test/e2e/output-screenshots/${ file }-expected.jpg` );