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:
@@ -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/`)
|
||||
|
||||
| Файл | Назначение |
|
||||
|
||||
Reference in New Issue
Block a user