From b8330e13c24abb552b267dc9d686936d409d2a2e Mon Sep 17 00:00:00 2001 From: Elliott Marque <5981958+e111077@users.noreply.github.com> Date: Fri, 11 Apr 2025 00:09:49 -0700 Subject: [PATCH] build: add postinstall to copy AI instructions for more formats --- .clinerules | 1 + .cursorrules | 1 + .prettierignore | 4 ++++ .prettierignore-sync | 5 +++++ .roorules | 1 + AGENTS.md | 1 + CLAUDE.md | 1 + package.json | 2 +- 8 files changed, 15 insertions(+), 1 deletion(-) create mode 120000 .clinerules create mode 120000 .cursorrules create mode 120000 .roorules create mode 120000 AGENTS.md create mode 120000 CLAUDE.md diff --git a/.clinerules b/.clinerules new file mode 120000 index 0000000000..02dd134122 --- /dev/null +++ b/.clinerules @@ -0,0 +1 @@ +.github/copilot-instructions.md \ No newline at end of file diff --git a/.cursorrules b/.cursorrules new file mode 120000 index 0000000000..02dd134122 --- /dev/null +++ b/.cursorrules @@ -0,0 +1 @@ +.github/copilot-instructions.md \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index d3751f6f16..04e1e94765 100644 --- a/.prettierignore +++ b/.prettierignore @@ -438,3 +438,7 @@ package-lock.json packages/localize/examples/ packages/localize-tools/testdata/ packages/localize-tools/config.schema.json +.clinerules +.roorules +.cursorrules +CLAUDE.md diff --git a/.prettierignore-sync b/.prettierignore-sync index 83325de9e2..829d457390 100644 --- a/.prettierignore-sync +++ b/.prettierignore-sync @@ -11,3 +11,8 @@ package-lock.json packages/localize/examples/ packages/localize-tools/testdata/ packages/localize-tools/config.schema.json +# Symlinks +.clinerules +.roorules +.cursorrules +CLAUDE.md diff --git a/.roorules b/.roorules new file mode 120000 index 0000000000..02dd134122 --- /dev/null +++ b/.roorules @@ -0,0 +1 @@ +.github/copilot-instructions.md \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md new file mode 120000 index 0000000000..02dd134122 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1 @@ +.github/copilot-instructions.md \ No newline at end of file diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 0000000000..02dd134122 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +.github/copilot-instructions.md \ No newline at end of file diff --git a/package.json b/package.json index c2b4da100a..b58b36d704 100644 --- a/package.json +++ b/package.json @@ -306,7 +306,7 @@ } }, "lint-staged": { - "**/*.{cjs,html,js,json,md,ts}": "prettier --write", + "**/*.{cjs,html,js,json,md,ts}": "prettier --write --no-error-on-unmatched-pattern", "{*.{js,ts},!(examples)/**/*.{js,ts}}": "eslint --fix" } }