Skip to content

Commit 540b7fb

Browse files
Merge pull request #44 from open-telemetry/add-copyright-headers
Add copyright headers and SPDX license info
2 parents 2facecc + a0c66e8 commit 540b7fb

File tree

20 files changed

+130
-7
lines changed

20 files changed

+130
-7
lines changed

.eslintrc.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"extends": ["next/core-web-vitals", "next/typescript"]
2+
"extends": ["next/core-web-vitals", "next/typescript"],
3+
"plugins": ["header"],
4+
"rules": {
5+
"header/header": [
6+
2,
7+
"block",
8+
"Copyright The OpenTelemetry Authors\nSPDX-License-Identifier: Apache-2.0"
9+
]
10+
}
311
}

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ All source files must include the following copyright header:
5151
- Reference the issue number in the PR description with "Closes #X"
5252
- All linting must pass (`npm run lint`)
5353
- Make sure all copyright headers are present
54-
- Keep changes focused and minimal
54+
- Keep changes focused and minimal

eslint.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// eslint.config.mjs
2+
3+
import { FlatCompat } from "@eslint/eslintrc";
4+
import pluginHeader from "eslint-plugin-header";
5+
6+
pluginHeader.rules.header.meta.schema = false;
7+
8+
const compat = new FlatCompat({
9+
// import.meta.dirname is available after Node.js v20.11.0
10+
baseDirectory: import.meta.dirname,
11+
});
12+
13+
const eslintConfig = [
14+
...compat.config({
15+
extends: ["next", "next/core-web-vitals", "next/typescript"],
16+
}),
17+
];
18+
19+
export default eslintConfig;

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@types/react-dom": "^19.0.0",
3333
"eslint": "^9.0.0",
3434
"eslint-config-next": "15.3.1",
35+
"eslint-plugin-header": "^3.1.1",
3536
"postcss": "^8",
3637
"tailwindcss": "^4.0.0",
3738
"typescript": "^5"

src/app/api/revalidate/route.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import { revalidatePath } from "next/cache";
27
import { NextRequest } from "next/server";
38

src/app/api/test/route.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import { saveEntry } from "@/lib/store";
27
import { ChangelogEntry } from "@/types/entry";
38

src/app/api/webhook/route.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import { NextRequest } from "next/server";
27
import { saveEntry } from "@/lib/store";
38
import { ChangelogEntry } from "@/types/entry";

src/app/feed/route.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import { getAllEntries } from "@/lib/store";
27

38
export const dynamic = "force-dynamic";

src/app/layout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import type { Metadata } from "next";
27
import localFont from "next/font/local";
38
import "./globals.css";

0 commit comments

Comments
 (0)