Skip to content

Commit 7d88e13

Browse files
mcollinaaduh95
authored andcommitted
meta: ignore AI assistants files
Ignore CLAUDE.md and AGENTS.md in .gitignore, and exclude them from markdown and ESLint linting. Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: #62612 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 2648efd commit 7d88e13

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ cmake_install.cmake
158158
install_manifest.txt
159159
*.cbp
160160

161+
# === Rules for AI assistants ===
162+
CLAUDE.md
163+
AGENTS.md
164+
161165
# === Global Rules ===
162166
# Keep last to avoid being excluded
163167
*.pyc

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ else
13841384
LINT_MD_NEWER = -newer tools/.mdlintstamp
13851385
endif
13861386

1387-
LINT_MD_TARGETS = doc src lib benchmark test tools/doc tools/icu $(wildcard *.md)
1387+
LINT_MD_TARGETS = doc src lib benchmark test tools/doc tools/icu $(filter-out CLAUDE.md AGENTS.md,$(wildcard *.md))
13881388
LINT_MD_FILES = $(shell $(FIND) $(LINT_MD_TARGETS) -type f \
13891389
! -path '*node_modules*' ! -path 'test/fixtures/*' -name '*.md' \
13901390
$(LINT_MD_NEWER))

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ export default [
394394
// #region markdown config
395395
{
396396
files: ['**/*.md'],
397+
ignores: ['CLAUDE.md', 'AGENTS.md'],
397398
plugins: {
398399
markdown,
399400
},

0 commit comments

Comments
 (0)