Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* @fileoverview take from {@link https://github.com/GoogleChromeLabs/chromium-bidi/blob/main/rollup.config.mjs | chromium-bidi}
* and modified to specific requirement.
Expand Down
17 changes: 17 additions & 0 deletions scripts/eslint_rules/check-license-rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default {
schema: [],
messages: {
licenseRule: 'Add license header.',
emptyLine: 'Add empty line after license header.',
},
},
defaultOptions: [],
Expand Down Expand Up @@ -64,6 +65,22 @@ export default {
header.value.includes('License') ||
header.value.includes('Copyright'))
) {
const nextToken = sourceCode.getTokenAfter(header, {
includeComments: true,
});
if (
nextToken &&
nextToken.loc.start.line === header.loc.end.line + 1
) {
context.report({
node: node,
loc: header.loc,
messageId: 'emptyLine',
fix(fixer) {
return fixer.insertTextAfter(header, '\n');
},
});
}
return;
}

Expand Down
1 change: 1 addition & 0 deletions scripts/eval_scenarios/console_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import assert from 'node:assert';

import type {TestScenario} from '../eval_gemini.ts';
Expand Down
1 change: 1 addition & 0 deletions scripts/eval_scenarios/emulation_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import assert from 'node:assert';

import type {TestScenario} from '../eval_gemini.ts';
Expand Down
1 change: 1 addition & 0 deletions scripts/eval_scenarios/input_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import assert from 'node:assert';

import type {TestScenario} from '../eval_gemini.ts';
Expand Down
1 change: 1 addition & 0 deletions scripts/eval_scenarios/navigation_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import assert from 'node:assert';

import type {TestScenario} from '../eval_gemini.ts';
Expand Down
1 change: 1 addition & 0 deletions scripts/eval_scenarios/network_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import assert from 'node:assert';

import type {TestScenario} from '../eval_gemini.ts';
Expand Down
1 change: 1 addition & 0 deletions scripts/eval_scenarios/performance_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import assert from 'node:assert';

import type {TestScenario} from '../eval_gemini.ts';
Expand Down
1 change: 1 addition & 0 deletions scripts/eval_scenarios/snapshot_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import assert from 'node:assert';

import type {TestScenario} from '../eval_gemini.ts';
Expand Down
1 change: 1 addition & 0 deletions src/formatters/SnapshotFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import type {TextSnapshot, TextSnapshotNode} from '../McpContext.js';

export class SnapshotFormatter {
Expand Down
1 change: 1 addition & 0 deletions src/tools/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import {zod} from '../third_party/index.js';
import type {ConsoleMessageType} from '../third_party/index.js';

Expand Down
1 change: 1 addition & 0 deletions src/tools/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import * as consoleTools from './console.js';
import * as emulationTools from './emulation.js';
import * as inputTools from './input.js';
Expand Down