From d55168f51ff989f6818ce386ae5ab7f383b9d3e3 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 20 Apr 2025 17:16:25 -0700 Subject: add linter for checking license headers (and eslint --fix target to match, and fix missing license headers while we're here) (#62) --- packages/cli/src/index.test.ts | 6 ++++++ packages/cli/src/ui/colors.ts | 6 ++++++ packages/cli/src/ui/hooks/useStdin.ts | 6 ++++++ 3 files changed, 18 insertions(+) (limited to 'packages/cli/src') diff --git a/packages/cli/src/index.test.ts b/packages/cli/src/index.test.ts index bbe9fa8b..9d65e38f 100644 --- a/packages/cli/src/index.test.ts +++ b/packages/cli/src/index.test.ts @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + import { describe, it, expect } from 'vitest'; import { toolRegistry } from './tools/tool-registry.js'; diff --git a/packages/cli/src/ui/colors.ts b/packages/cli/src/ui/colors.ts index be8dac19..946be512 100644 --- a/packages/cli/src/ui/colors.ts +++ b/packages/cli/src/ui/colors.ts @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + export const Colors = { Background: '#1E1E2E', Foreground: 'white', diff --git a/packages/cli/src/ui/hooks/useStdin.ts b/packages/cli/src/ui/hooks/useStdin.ts index 8c741c9b..e91b90e6 100644 --- a/packages/cli/src/ui/hooks/useStdin.ts +++ b/packages/cli/src/ui/hooks/useStdin.ts @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + import { useState, useEffect } from 'react'; import { useStdin } from 'ink'; -- cgit v1.2.3