Skip to content

Commit 3bcf0f0

Browse files
Update dependency @biomejs/biome to v2 (#46)
* Update dependency @biomejs/biome to v2 * Migrating config and applying rules. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Robin Tail <[email protected]>
1 parent 46dfb4a commit 3bcf0f0

File tree

5 files changed

+24
-16
lines changed

5 files changed

+24
-16
lines changed

biome.json

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"organizeImports": { "enabled": true, "ignore": ["dist/"] },
2+
"$schema": "https://biomejs.dev/schemas/2.0.4/schema.json",
3+
"files": { "includes": ["**", "!dist/**", "!coverage/**"] },
4+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
45
"formatter": {
56
"enabled": true,
6-
"indentStyle": "space",
7-
"ignore": ["dist/", "coverage/", "package.json", "renovate.json"]
7+
"indentStyle": "space"
88
},
99
"javascript": {
1010
"globals": ["Bun"]
1111
},
1212
"linter": {
1313
"enabled": true,
14-
"ignore": ["dist/", "coverage/"],
1514
"rules": {
1615
"recommended": true,
1716
"complexity": {
1817
"noExtraBooleanCast": "error",
19-
"noMultipleSpacesInRegularExpressionLiterals": "error",
2018
"noUselessCatch": "error",
2119
"noUselessTypeConstraint": "error",
22-
"noWith": "error"
20+
"noAdjacentSpacesInRegex": "error"
2321
},
2422
"correctness": {
2523
"noConstAssign": "error",
@@ -28,7 +26,6 @@
2826
"noEmptyPattern": "error",
2927
"noGlobalObjectCalls": "error",
3028
"noInvalidConstructorSuper": "error",
31-
"noInvalidNewBuiltin": "error",
3229
"noNonoctalDecimalEscape": "error",
3330
"noPrecisionLoss": "error",
3431
"noSelfAssign": "error",
@@ -42,15 +39,26 @@
4239
"noUnusedLabels": "error",
4340
"noUnusedPrivateClassMembers": "error",
4441
"noUnusedVariables": "error",
45-
"useArrayLiterals": "off",
4642
"useIsNan": "error",
4743
"useValidForDirection": "error",
48-
"useYield": "error"
44+
"useYield": "error",
45+
"noInvalidBuiltinInstantiation": "error",
46+
"useValidTypeof": "error"
4947
},
5048
"style": {
5149
"noNamespace": "error",
5250
"useAsConstAssertion": "error",
53-
"useBlockStatements": "off"
51+
"useBlockStatements": "off",
52+
"noParameterAssign": "error",
53+
"useDefaultParameterLast": "error",
54+
"useEnumInitializers": "error",
55+
"useSelfClosingElements": "error",
56+
"useSingleVarDeclarator": "error",
57+
"noUnusedTemplateLiteral": "error",
58+
"useNumberNamespace": "error",
59+
"noInferrableTypes": "error",
60+
"noUselessElse": "error",
61+
"useArrayLiterals": "off"
5462
},
5563
"suspicious": {
5664
"noAsyncPromiseExecutor": "error",
@@ -79,13 +87,13 @@
7987
"noUnsafeNegation": "error",
8088
"useGetterReturn": "error",
8189
"useNamespaceKeyword": "error",
82-
"useValidTypeof": "error"
90+
"noWith": "error"
8391
}
8492
}
8593
},
8694
"overrides": [
8795
{
88-
"include": ["**/*.spec.ts", "tsup.config.ts"],
96+
"includes": ["**/*.spec.ts", "tsup.config.ts"],
8997
"linter": {
9098
"rules": {
9199
"suspicious": { "noExplicitAny": "off" },

bun.lockb

0 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"devDependencies": {
5050
"@arethetypeswrong/cli": "^0.18.0",
51-
"@biomejs/biome": "1.9.4",
51+
"@biomejs/biome": "2.0.4",
5252
"@tsconfig/bun": "^1.0.7",
5353
"@types/bun": "latest",
5454
"@types/ramda": "^0.30.2",

src/rule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ESLintUtils } from "@typescript-eslint/utils";
22
import * as R from "ramda";
33
import { getManifest, getName, splitPeers } from "./helpers.ts";
4-
import { type Category, type Options, type Value, options } from "./schema.ts";
4+
import { type Category, type Options, options, type Value } from "./schema.ts";
55

66
const messages = {
77
prohibited: "Importing {{name}} is not allowed.",

tools/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fail } from "node:assert";
22
import { $ } from "bun";
3-
import { type ReleaseType, inc, valid as isValidVersion } from "semver";
3+
import { inc, valid as isValidVersion, type ReleaseType } from "semver";
44

55
const path = "./package.json";
66
const variants: ReleaseType[] = [

0 commit comments

Comments
 (0)