mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
Update Gemini.md to use the curent year on creating new files (#18460)
This commit is contained in:
@@ -67,6 +67,9 @@ powerful tool for developers.
|
|||||||
and `packages/core` (Backend logic).
|
and `packages/core` (Backend logic).
|
||||||
- **Imports:** Use specific imports and avoid restricted relative imports
|
- **Imports:** Use specific imports and avoid restricted relative imports
|
||||||
between packages (enforced by ESLint).
|
between packages (enforced by ESLint).
|
||||||
|
- **License Headers:** For all new source code files (`.ts`, `.tsx`, `.js`),
|
||||||
|
include the Apache-2.0 license header with the current year. (e.g.,
|
||||||
|
`Copyright 2026 Google LLC`). This is enforced by ESLint.
|
||||||
|
|
||||||
## Testing Conventions
|
## Testing Conventions
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -23,6 +23,7 @@ const __dirname = path.dirname(__filename);
|
|||||||
|
|
||||||
// Determine the monorepo root (assuming eslint.config.js is at the root)
|
// Determine the monorepo root (assuming eslint.config.js is at the root)
|
||||||
const projectRoot = __dirname;
|
const projectRoot = __dirname;
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
|
||||||
export default tseslint.config(
|
export default tseslint.config(
|
||||||
{
|
{
|
||||||
@@ -267,8 +268,8 @@ export default tseslint.config(
|
|||||||
].join('\n'),
|
].join('\n'),
|
||||||
patterns: {
|
patterns: {
|
||||||
year: {
|
year: {
|
||||||
pattern: '202[5-6]',
|
pattern: `202[5-${currentYear.toString().slice(-1)}]`,
|
||||||
defaultValue: '2026',
|
defaultValue: currentYear.toString(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user