rules: file encoding for PowerShell (Windows) and shell (Linux)

Add alwaysApply file-encoding rule, shell-spec, .editorconfig and .gitattributes templates so agents save .ps1 as UTF-8 BOM+CRLF and .sh as UTF-8+LF; document runtime JSON/spool without BOM.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-25 09:17:43 +10:00
parent 3c111887d1
commit 40aee1d3ef
7 changed files with 121 additions and 0 deletions
+16
View File
@@ -104,6 +104,22 @@ Push: `git push kalinamall`
---
## Кодировка файлов (Windows / Linux)
Правило **`file-encoding`** (`.cursor/rules/file-encoding.mdc`, `alwaysApply: true`):
| Среда | Расширения | Кодировка | Переносы |
|-------|------------|-----------|----------|
| Windows / PowerShell | `.ps1`, `.psm1` | UTF-8 **with BOM** | CRLF |
| Linux / shell | `.sh` | UTF-8 **без BOM** | LF |
| Runtime JSON/spool (PS → SAC/API) | на диске | UTF-8 **без BOM** | — |
В репозиториях проектов — `.editorconfig` и `.gitattributes` (шаблоны есть в этом repo).
После `init-cursor --update` правило попадает во все проекты.
---
## Конфиги (`local/`)
| Файл | Назначение |