typescript-style

作成者: contentstack

このリポジトリのTypeScriptコンパイラ設定、手書きの型定義、TSLint — tsconfig、型定義、lintルールを変更する際に使用します。

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のその他のスキル

cms-assets
contentstack
開発者がContentstackでアセットを整理、配信、変換する方法についてアドバイスします。フォルダ構造、Image Delivery API変換、公開について取り上げます…
cms-branches-aliases
contentstack
Contentstackのブランチを使用した分離されたコンテンツ開発と、エイリアスを使用したダウンタイムゼロのコンテンツデプロイについて開発者にアドバイスします。ブランチ戦略、…
cms-data-modeling-best-practices
contentstack
開発者がContentstackでコンテンツをモデリングする際、最もシンプルで再利用可能な構造を用いるよう導きます。このスキルでは、コンテンツタイプ、参照、グローバル…をいつ使用すべきかを説明します。
cms-live-preview-visual-builder-support-assistant
contentstack
Contentstack Live PreviewおよびVisual Builderの実装を診断し、ガイドします。プレビューコンテキストを追跡し、壊れたコントラクトを特定して、推奨…
cms-releases
contentstack
Contentstack Releasesを使用した、調整されたアトミックなコンテンツデプロイについて開発者にアドバイスします。リリース作成、アイテム管理、段階的デプロイをカバーします…
cms-roles-permissions
contentstack
Contentstackにおけるロール、権限、チーム、トークンアクセスの設計について開発者に助言します。組み込みロール、カスタムロール、権限のマージ、…について説明します。
cms-taxonomy
contentstack
開発者に対し、構造化された階層的なコンテンツ分類と配信側フィルタリングのためのContentstack Taxonomyの使用についてアドバイスします。タクソノミーとタグの比較、…
cms-tokens-authentication
contentstack
フロントエンド、バックエンド、自動化、およびサードパーティアプリのユースケースに適したContentstack認証方法とトークンタイプの選択について、開発者にアドバイスします。…