Skip to content

Commit f1ebcc6

Browse files
chore(deps-dev): bump @biomejs/biome to v2 for all packages (#2281)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 181d486 commit f1ebcc6

Some content is hidden

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

71 files changed

+521
-376
lines changed

biome.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": "on"
7+
}
8+
}
9+
},
310
"formatter": {
411
"enabled": true,
512
"formatWithErrors": false,
6-
"ignore": [],
13+
"includes": [
14+
"**"
15+
],
716
"attributePosition": "auto",
817
"indentStyle": "space",
918
"indentWidth": 2,
@@ -18,12 +27,21 @@
1827
"linter": {
1928
"enabled": true,
2029
"rules": {
21-
"recommended": true
30+
"recommended": true,
31+
"style": {
32+
"noParameterAssign": "error",
33+
"useAsConstAssertion": "error",
34+
"useDefaultParameterLast": "error",
35+
"useEnumInitializers": "error",
36+
"useSelfClosingElements": "error",
37+
"useSingleVarDeclarator": "error",
38+
"noUnusedTemplateLiteral": "error",
39+
"useNumberNamespace": "error",
40+
"noInferrableTypes": "error",
41+
"noUselessElse": "error"
42+
}
2243
}
2344
},
24-
"organizeImports": {
25-
"enabled": true
26-
},
2745
"vcs": {
2846
"enabled": true,
2947
"clientKind": "git",

packages/cli-hooks/biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
33
"extends": ["../../biome.json"]
44
}

packages/cli-hooks/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
"description": "Node implementation of the contract between the Slack CLI and Bolt for JavaScript",
55
"author": "Slack Technologies, LLC",
66
"license": "MIT",
7-
"keywords": ["slack", "cli", "hooks"],
7+
"keywords": [
8+
"cli",
9+
"hooks",
10+
"slack"
11+
],
812
"type": "module",
913
"main": "src/get-hooks.js",
1014
"files": [
@@ -51,7 +55,7 @@
5155
"semver": "^7.5.4"
5256
},
5357
"devDependencies": {
54-
"@biomejs/biome": "^1.8.3",
58+
"@biomejs/biome": "^2.0.5",
5559
"@types/minimist": "^1.2.5",
5660
"@types/mocha": "^10.0.6",
5761
"@types/node": "^24.0.3",

packages/cli-hooks/src/check-update.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { after, before, describe, it } from 'mocha';
66
import sinon from 'sinon';
77

88
import checkForSDKUpdates, {
9+
createUpdateErrorMessage,
910
hasAvailableUpdates,
1011
hasBreakingChange,
11-
createUpdateErrorMessage,
1212
} from './check-update.js';
1313

1414
/**

packages/cli-hooks/src/protocols.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import assert from 'node:assert';
22
import { afterEach, beforeEach, describe, it } from 'mocha';
33
import sinon from 'sinon';
44

5-
import { DefaultProtocol, MessageBoundaryProtocol, getProtocol } from './protocols.js';
5+
import { DefaultProtocol, getProtocol, MessageBoundaryProtocol } from './protocols.js';
66

77
describe('protocol implementations', () => {
88
describe('default protocol', () => {

packages/cli-test/biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
33
"extends": ["../../biome.json"]
44
}

packages/cli-test/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
"description": "Node.js bindings for the Slack CLI for use in automated testing",
55
"author": "Salesforce, Inc.",
66
"license": "MIT",
7-
"keywords": ["slack", "cli", "test"],
7+
"keywords": [
8+
"cli",
9+
"slack",
10+
"test"
11+
],
812
"main": "dist/index.js",
913
"types": "dist/index.d.ts",
10-
"files": ["dist/**/*"],
14+
"files": [
15+
"dist/**/*"
16+
],
1117
"engines": {
1218
"node": ">=18.15.5"
1319
},
@@ -32,7 +38,7 @@
3238
"winston": "^3.8.2"
3339
},
3440
"devDependencies": {
35-
"@biomejs/biome": "^1.8.3",
41+
"@biomejs/biome": "^2.0.5",
3642
"@tsconfig/recommended": "^1.0.6",
3743
"@types/chai": "^4.3.16",
3844
"@types/mocha": "^10.0.6",

packages/cli-test/src/cli/cli-process.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { shell } from './shell';
2-
31
import type { SpawnOptionsWithoutStdio } from 'node:child_process';
42
import type { ShellProcess } from '../types/shell';
3+
import { shell } from './shell';
54

65
export interface SlackCLIGlobalOptions {
76
/**

packages/cli-test/src/cli/commands/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { SlackCLIProcess } from '../cli-process';
2-
31
import type { ProjectCommandArguments } from '../../types/commands/common_arguments';
2+
import { SlackCLIProcess } from '../cli-process';
43

54
/**
65
* `slack app delete`

packages/cli-test/src/cli/commands/auth.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
import type { ShellProcess } from '../../types/shell';
12
import {
23
type SlackCLICommandOptions,
34
type SlackCLIGlobalOptions,
45
type SlackCLIHostTargetOptions,
56
SlackCLIProcess,
67
} from '../cli-process';
78

8-
import type { ShellProcess } from '../../types/shell';
9-
109
type AuthLoginNoPromptArguments = SlackCLIHostTargetOptions & Pick<SlackCLIGlobalOptions, 'verbose'>;
1110
type AuthLoginChallengeExchangeArugments = SlackCLIHostTargetOptions & {
1211
/** @description Challenge string extracted from the Slack client UI after submitting the auth slash command. */

0 commit comments

Comments
 (0)