diff --git a/aliases/biome.json b/aliases/biome.json index 90532125..86bda6e2 100644 --- a/aliases/biome.json +++ b/aliases/biome.json @@ -1,4 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "extends": ["../biome.json"] + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "root": false, + "extends": "//" } diff --git a/aliases/package.json b/aliases/package.json index 7f065803..d9e19a19 100644 --- a/aliases/package.json +++ b/aliases/package.json @@ -7,7 +7,10 @@ "type": "git", "url": "git+https://github.com/cutenode/nodevu.git" }, - "keywords": ["node.js", "version"], + "keywords": [ + "node.js", + "version" + ], "author": "Tierney Cyren (https://bnb.im/)", "license": "MIT", "bugs": { @@ -22,6 +25,6 @@ "updates:update": "npx npm-check-updates -u" }, "devDependencies": { - "@biomejs/biome": "1.9.4" + "@biomejs/biome": "2.5.15" } } diff --git a/biome.json b/biome.json index 57b85528..88b80e48 100644 --- a/biome.json +++ b/biome.json @@ -1,12 +1,16 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, - "organizeImports": { - "enabled": true + "assist": { + "actions": { + "source": { + "organizeImports": "on" + } + } }, "javascript": { "formatter": { @@ -16,7 +20,7 @@ "linter": { "enabled": true, "rules": { - "recommended": true + "preset": "recommended" } } } diff --git a/core/biome.json b/core/biome.json index 90532125..86bda6e2 100644 --- a/core/biome.json +++ b/core/biome.json @@ -1,4 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "extends": ["../biome.json"] + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "root": false, + "extends": "//" } diff --git a/core/package.json b/core/package.json index f65a1aec..23067b21 100644 --- a/core/package.json +++ b/core/package.json @@ -16,14 +16,18 @@ }, "author": "Tierney Cyren (https://bnb.im/)", "license": "MIT", - "files": ["index.js", "LICENSE", "/util/prod"], + "files": [ + "index.js", + "LICENSE", + "/util/prod" + ], "dependencies": { "@nodevu/parsefiles": "^0.0.3", "luxon": "^3.5.0", "semver": "^7.6.3" }, "devDependencies": { - "@biomejs/biome": "1.9.4", + "@biomejs/biome": "2.5.15", "c8": "^10.1.2", "undici": "^6.20.1" } diff --git a/core/test/parseOptions.js b/core/test/parseOptions.js index d1e7460b..79359a6b 100644 --- a/core/test/parseOptions.js +++ b/core/test/parseOptions.js @@ -1,8 +1,7 @@ const { deepStrictEqual } = require('node:assert'); -const { describe, it, beforeEach } = require('node:test'); +const { describe, it } = require('node:test'); const { fetch: undiciFetch } = require('undici'); const { DateTime } = require('luxon'); -const nodevu = require('../index'); const parseOptions = require('../util/prod/optionsParser'); describe('the parseOptions module should return all correct defaults', async () => { diff --git a/core/test/schedule.js b/core/test/schedule.js index 70a307de..21e61ce3 100644 --- a/core/test/schedule.js +++ b/core/test/schedule.js @@ -1,14 +1,12 @@ const { deepStrictEqual } = require('node:assert'); const { describe, it } = require('node:test'); const { fetch: undiciFetch } = require('undici'); -const { DateTime } = require('luxon'); -const nodevu = require('../index'); const schedule = require('../util/prod/schedule'); const optionsParser = require('../util/prod/optionsParser'); // checks that verify the result of data returned function check(data) { - for (const [line, metadata] of Object.entries(data)) { + for (const metadata of Object.values(data)) { for (const [metadataKey, metadataValue] of Object.entries(metadata)) { deepStrictEqual(typeof metadataKey, 'string'); deepStrictEqual(typeof metadataValue, 'string'); diff --git a/core/test/versions.js b/core/test/versions.js index 41ae686f..c7cf4d35 100644 --- a/core/test/versions.js +++ b/core/test/versions.js @@ -1,8 +1,6 @@ const { deepStrictEqual } = require('node:assert'); const { describe, it } = require('node:test'); const { fetch: undiciFetch } = require('undici'); -const { DateTime } = require('luxon'); -const nodevu = require('../index'); const versions = require('../util/prod/versions'); const optionsParser = require('../util/prod/optionsParser'); diff --git a/fetchindex/biome.json b/fetchindex/biome.json index 90532125..86bda6e2 100644 --- a/fetchindex/biome.json +++ b/fetchindex/biome.json @@ -1,4 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "extends": ["../biome.json"] + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "root": false, + "extends": "//" } diff --git a/fetchindex/package.json b/fetchindex/package.json index d21a434e..234da0d0 100644 --- a/fetchindex/package.json +++ b/fetchindex/package.json @@ -3,7 +3,10 @@ "version": "1.1.0", "description": "A tool that fetches the /dist/index.json file from the Node.js website.", "main": "index.js", - "files": ["index.js", "LICENSE"], + "files": [ + "index.js", + "LICENSE" + ], "scripts": { "lint": "biome check ./", "lint:write": "biome check ./ --write", @@ -16,7 +19,10 @@ "type": "git", "url": "git+https://github.com/cutenode/nodevu.git" }, - "keywords": ["node.js", "versions"], + "keywords": [ + "node.js", + "versions" + ], "author": "Tierney Cyren (https://bnb.im/)", "license": "MIT", "bugs": { @@ -24,7 +30,7 @@ }, "homepage": "https://github.com/cutenode/nodevu#readme", "devDependencies": { - "@biomejs/biome": "1.9.4", + "@biomejs/biome": "2.5.15", "c8": "^10.1.2", "luxon": "^3.5.0", "undici": "^6.20.1" diff --git a/newest/biome.json b/newest/biome.json index 90532125..86bda6e2 100644 --- a/newest/biome.json +++ b/newest/biome.json @@ -1,4 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "extends": ["../biome.json"] + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "root": false, + "extends": "//" } diff --git a/newest/package.json b/newest/package.json index 0a9dc101..02f00adb 100644 --- a/newest/package.json +++ b/newest/package.json @@ -3,7 +3,10 @@ "version": "1.1.0", "description": "a module that returns the newest lts or security release of the release line passed.", "main": "index.js", - "files": ["index.js", "LICENSE"], + "files": [ + "index.js", + "LICENSE" + ], "scripts": { "lint": "biome check ./", "lint:write": "biome check ./ --write", @@ -16,7 +19,10 @@ "type": "git", "url": "git+https://github.com/cutenode/nodevu.git" }, - "keywords": ["node.js", "versions"], + "keywords": [ + "node.js", + "versions" + ], "author": "Tierney Cyren (https://bnb.im/)", "license": "MIT", "bugs": { @@ -27,7 +33,7 @@ "@nodevu/core": "^1.0.0" }, "devDependencies": { - "@biomejs/biome": "1.9.4", + "@biomejs/biome": "2.5.15", "c8": "^10.1.2" } } diff --git a/oldest/biome.json b/oldest/biome.json index 90532125..86bda6e2 100644 --- a/oldest/biome.json +++ b/oldest/biome.json @@ -1,4 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "extends": ["../biome.json"] + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "root": false, + "extends": "//" } diff --git a/oldest/package.json b/oldest/package.json index 359fb85d..1e87f651 100644 --- a/oldest/package.json +++ b/oldest/package.json @@ -3,7 +3,10 @@ "version": "1.1.0", "description": "a module that returns the oldest lts or security release of the release line passed.", "main": "index.js", - "files": ["index.js", "LICENSE"], + "files": [ + "index.js", + "LICENSE" + ], "scripts": { "lint": "biome check ./", "lint:write": "biome check ./ --write", @@ -16,7 +19,10 @@ "type": "git", "url": "git+https://github.com/cutenode/nodevu.git" }, - "keywords": ["node.js", "versions"], + "keywords": [ + "node.js", + "versions" + ], "author": "Tierney Cyren (https://bnb.im/)", "license": "MIT", "bugs": { @@ -27,7 +33,7 @@ "@nodevu/core": "^1.0.0" }, "devDependencies": { - "@biomejs/biome": "1.9.4", + "@biomejs/biome": "2.5.15", "c8": "^10.1.2" } } diff --git a/opt/biome.json b/opt/biome.json index 90532125..86bda6e2 100644 --- a/opt/biome.json +++ b/opt/biome.json @@ -1,4 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "extends": ["../biome.json"] + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "root": false, + "extends": "//" } diff --git a/opt/package.json b/opt/package.json index 5b33b2a3..cabfc276 100644 --- a/opt/package.json +++ b/opt/package.json @@ -3,7 +3,10 @@ "version": "1.0.0", "description": "internal options parser for @nodevu packages.", "main": "index.js", - "files": ["index.js", "LICENSE"], + "files": [ + "index.js", + "LICENSE" + ], "scripts": { "lint": "biome check ./", "lint:write": "biome check ./ --write", @@ -16,7 +19,10 @@ "type": "git", "url": "git+https://github.com/cutenode/nodevu.git" }, - "keywords": ["node.js", "versions"], + "keywords": [ + "node.js", + "versions" + ], "author": "Tierney Cyren (https://bnb.im/)", "license": "MIT", "bugs": { @@ -24,7 +30,7 @@ }, "homepage": "https://github.com/cutenode/nodevu#readme", "devDependencies": { - "@biomejs/biome": "1.9.4", + "@biomejs/biome": "2.5.15", "c8": "^10.1.2", "luxon": "^3.5.0", "undici": "^6.20.1" diff --git a/package.json b/package.json index ec795610..f5df03a5 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,10 @@ "type": "git", "url": "git+https://github.com/cutenode/nodevu.git" }, - "keywords": ["node.js", "version"], + "keywords": [ + "node.js", + "version" + ], "author": "Tierney Cyren (https://bnb.im/)", "license": "MIT", "bugs": { diff --git a/parsefiles/biome.json b/parsefiles/biome.json index 90532125..86bda6e2 100644 --- a/parsefiles/biome.json +++ b/parsefiles/biome.json @@ -1,4 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "extends": ["../biome.json"] + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "root": false, + "extends": "//" } diff --git a/parsefiles/package.json b/parsefiles/package.json index 5626dbab..5e618666 100644 --- a/parsefiles/package.json +++ b/parsefiles/package.json @@ -11,12 +11,20 @@ "updates:check": "npx npm-check-updates", "updates:update": "npx npm-check-updates -u" }, - "keywords": ["node.js", "versions", "parse", "files"], - "files": ["index.js", "LICENSE"], + "keywords": [ + "node.js", + "versions", + "parse", + "files" + ], + "files": [ + "index.js", + "LICENSE" + ], "author": "Tierney Cyren ", "license": "MIT", "devDependencies": { - "@biomejs/biome": "1.9.4", + "@biomejs/biome": "2.5.15", "c8": "^10.1.2" } } diff --git a/ranges/biome.json b/ranges/biome.json index 90532125..86bda6e2 100644 --- a/ranges/biome.json +++ b/ranges/biome.json @@ -1,4 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "extends": ["../biome.json"] + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "root": false, + "extends": "//" } diff --git a/ranges/package.json b/ranges/package.json index a0cc6331..9de47bef 100644 --- a/ranges/package.json +++ b/ranges/package.json @@ -3,7 +3,10 @@ "version": "1.1.0", "description": "support node's unofficial alias namespace", "main": "index.js", - "files": ["index.js", "LICENSE"], + "files": [ + "index.js", + "LICENSE" + ], "scripts": { "lint": "biome check ./", "lint:write": "biome check ./ --write", @@ -27,7 +30,7 @@ "@nodevu/core": "^1.0.0" }, "devDependencies": { - "@biomejs/biome": "1.9.4", + "@biomejs/biome": "2.5.15", "c8": "^10.1.2" } } diff --git a/static/biome.json b/static/biome.json index 8e2af1d6..33f05a4d 100644 --- a/static/biome.json +++ b/static/biome.json @@ -1,6 +1,7 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "extends": ["../biome.json"], + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "root": false, + "extends": "//", "files": { "maxSize": 20971520 } diff --git a/static/build/default.js b/static/build/default.js index 087fc029..045a6c65 100644 --- a/static/build/default.js +++ b/static/build/default.js @@ -1,7 +1,7 @@ const nodevu = require('@nodevu/core'); const write = require('../util/dev/write'); -async function writeDefault(filename) { +async function writeDefault() { const data = await nodevu(); write('./static/data/default.json', data); } diff --git a/static/build/releases.js b/static/build/releases.js index 26d80818..4d60f7c3 100644 --- a/static/build/releases.js +++ b/static/build/releases.js @@ -1,7 +1,7 @@ const nodevu = require('@nodevu/core'); const write = require('../util/dev/write'); -async function writeReleases(filename) { +async function writeReleases() { const data = await nodevu(); const releases = {}; diff --git a/static/build/security.js b/static/build/security.js index 487a23ad..73f21d27 100644 --- a/static/build/security.js +++ b/static/build/security.js @@ -1,7 +1,7 @@ const nodevu = require('@nodevu/core'); const write = require('../util/dev/write'); -async function writeSecurity(filename) { +async function writeSecurity() { const data = await nodevu(); const security = {}; diff --git a/static/build/support.js b/static/build/support.js index ba62c125..56abe03e 100644 --- a/static/build/support.js +++ b/static/build/support.js @@ -1,7 +1,7 @@ const nodevu = require('@nodevu/core'); const write = require('../util/dev/write'); -async function writeSupport(filename) { +async function writeSupport() { const data = await nodevu(); const support = {}; diff --git a/static/package.json b/static/package.json index 80b3b5d7..b2b95b1f 100644 --- a/static/package.json +++ b/static/package.json @@ -21,8 +21,16 @@ "type": "git", "url": "git+https://github.com/cutenode/nodevu.git" }, - "keywords": ["node.js", "version", "versions"], - "files": ["/data", "index.js", "LICENSE"], + "keywords": [ + "node.js", + "version", + "versions" + ], + "files": [ + "/data", + "index.js", + "LICENSE" + ], "author": "Tierney Cyren ", "license": "MIT", "bugs": { @@ -30,7 +38,7 @@ }, "homepage": "https://github.com/cutenode/nodevu#readme", "devDependencies": { - "@biomejs/biome": "1.9.4", + "@biomejs/biome": "2.5.15", "c8": "^10.1.2" } } diff --git a/translate/biome.json b/translate/biome.json index 90532125..86bda6e2 100644 --- a/translate/biome.json +++ b/translate/biome.json @@ -1,4 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "extends": ["../biome.json"] + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "root": false, + "extends": "//" } diff --git a/translate/package.json b/translate/package.json index e96751ff..23fa47b7 100644 --- a/translate/package.json +++ b/translate/package.json @@ -2,7 +2,13 @@ "name": "@nodevu/translate", "version": "1.0.0", "description": "a translation layer between the nodevu naming mechanism and the Node.js supported mechanism. Neceessary for legacy interop.", - "keywords": ["nodevu", "node", "nodejs", "versions", "supported"], + "keywords": [ + "nodevu", + "node", + "nodejs", + "versions", + "supported" + ], "homepage": "https://github.com/cutenode/nodevu#readme", "bugs": { "url": "https://github.com/cutenode/nodevu/issues" @@ -23,7 +29,7 @@ "updates:update": "npx npm-check-updates -u" }, "devDependencies": { - "@biomejs/biome": "1.9.4", + "@biomejs/biome": "2.5.15", "@nodevu/ranges": "^1.0.0", "c8": "^10.1.2" },