typescript-style

tarafından contentstack

TypeScript compiler settings, hand-written typings, and TSLint for this repo — use when changing tsconfig, typings, or lint rules.

npx skills add https://github.com/contentstack/datasync-asset-store-filesystem --skill typescript-style

TypeScript style – DataSync Asset Store Filesystem

When to use

  • Editing tsconfig.json, tslint.json, or files under typings/
  • Adding or changing .ts under src/ and need to align with existing strictness and lint
  • Debugging compile errors vs published types

Instructions

  • Compiler: tsconfig.json compiles only src/**/* to dist/ (module CommonJS, target ES6, moduleResolution node, alwaysStrict, noUnusedLocals / noUnusedParameters, noImplicitReturns, etc.). Do not widen options without a deliberate reason—match existing patterns.
  • Declarations: Public types ship from typings/ (package.json has "types": "./typings"). Keep .d.ts in sync with src/ exports; the build does not emit declarations from tsc (declaration options are commented out in tsconfig).
  • Lint: npm run tslint uses tslint.json extending tslint:recommended on src/**/*.ts. Notable rules include max line length 120, 2-space indent, no-default-export, interface names prefixed with I where the rule applies—follow fixes consistent with nearby files.
  • Dependencies: @types/node and @types/jest versions in package.json are pinned for compatibility; bump types together with TS upgrades when needed.

contentstack tarafından daha fazla skill

brand-kit-assistant
contentstack
Kullanıcılara Contentstack Brand Kit kavramları, kurulumu, yönetimi ve markaya uygun AI üretimi konusunda danışmanlık yapın. API'ye özgü görevleri doğru Brand Kit yeteneğine yönlendirin veya…
official
cms-assets
contentstack
Geliştiricilere Contentstack'te varlıkları düzenleme, sunma ve dönüştürme konusunda danışmanlık yapın. Klasör yapısı, Image Delivery API dönüşümleri, yayınlama…
official
cms-branches-aliases
contentstack
Geliştiricilere, izole içerik geliştirme için Contentstack branch'lerini ve sıfır kesinti süreli içerik dağıtımları için alias'ları kullanma konusunda tavsiyelerde bulunur. Branch stratejisini, … kapsar.
official
cms-data-modeling-best-practices
contentstack
Geliştiricilere Contentstack'te içeriği en basit yeniden kullanılabilir yapıyı kullanarak modellemeleri için rehberlik eder. Bu beceri, içerik türlerinin, referansların, global…
official
cms-entries
contentstack
Geliştiricilere Contentstack girişlerini sorgulama, yerelleştirme, sürümleme, yayınlama ve verimli teslimat için yapılandırma konusunda danışmanlık yapın. CDA kullanımı, referans…
official
cms-environments-publishing
contentstack
Geliştiricilere ortamları yapılandırma, içerik yayınlama, dağıtım ve önizleme token'larını kullanma, Sync API'den yararlanma ve CDN ile… hakkında tavsiyelerde bulunur.
official
cms-live-preview-visual-builder-support-assistant
contentstack
Contentstack Live Preview ve Visual Builder uygulamalarını teşhis edin ve yönlendirin. Önizleme bağlamını izleyin, bozuk sözleşmeyi belirleyin ve öneride bulunun…
official
cms-localization
contentstack
Geliştiricilere Contentstack yerelleştirmesi hakkında danışmanlık yapın: dil kurulumu, geri dönüş zincirleri, yerelleştirilmiş ve yerelleştirilmemiş girdiler, yerelleştirilemeyen alanlar ve çoklu yerel ayar…
official