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:
@@ -10,3 +10,7 @@ alwaysApply: false
|
||||
- Без comment-based help и лишних `Write-Host`, если не просили UI/логи.
|
||||
- Не дублируй длинные CLI-аргументы целиком — placeholder или переменная.
|
||||
- Сохраняй стиль и алиасы **существующего файла**; не навязывай `gc`/`gci` если в проекте полные имена.
|
||||
|
||||
## Кодировка и EOL
|
||||
|
||||
См. **`file-encoding.mdc`**: `.ps1` — **UTF-8 with BOM**, **CRLF**; runtime JSON/spool на диск — **UTF-8 без BOM**.
|
||||
|
||||
Reference in New Issue
Block a user