本文へ移動
cccskills
無料GitHub で公開

angular

Conventions for Angular applications

日本語の概要は準備中です。原文の説明を表示しています。

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

1. In all setup files, the target should be esnext

Example in tsconfig.json:

Replace:

{
  "compilerOptions": {
    "target": "es5",
    "lib": ["es5", "dom"],
    "types": ["cypress", "node"]
  },
  "include": ["**/*.ts"]
}

with

{
  "compilerOptions": {
    "target": "esnext",
    "lib": ["esnext", "dom"],
    "types": ["cypress", "node"]
  },
  "include": ["**/*.ts"]
}

2. Make sure that the code strictly follows all angular standards

Please find the list of alle angular standards on the following page: https://angular.dev/style-guide. It is of the utmost importance that all configuration, HTML, TypeScript, JavaScript, and everything that consists of an angular project, to follow these standards. Changes should be made accordingly. Modernize the build tooling too

3. Make sure that Angular projects are completely reactive with the usage of signals.

With the inception of signals, reactive programming for the front-end has been made easy. Make sure that, whenever possible, that the code uses signals instead of the typical subscriber model. Find information on how to do this with good practices over at: https://angular.dev/guide/signals Refactor subscribe() to resource()/rxResource()

4. Make sure to use new methods for deprecated classes

The RouterTestingModule and the HttpClientTestingModule have been deprecated. Can you make sure to replace the TypeScript declarations accordingly?

From RouterTestingModule.

Use provideRouter or RouterModule/RouterModule.forRoot instead. This module was previously used to provide a helpful collection of test fakes, most notably those for Location and LocationStrategy. These are generally not required anymore, as MockPlatformLocation is provided in TestBed by default. However, you can use them directly with provideLocationMocks.

From HttpClientTestingModule.

Add provideHttpClientTesting() to your providers instead.

Use both definitions to make the changes wherever possible.

6. Update the build system, if necessary

Follow the documentation on https://angular.dev/tools/cli/build-system-migration to make a successful build migration

7. Use scss/css standards for scss files

In old projects, very little attention was given to scss standards. Here we want to make sure that all scss is being applied according to the scss documents over at:

  1. https://sass-lang.com/documentation/syntax/
  2. https://sass-lang.com/documentation/

When possible, make sure to optimize the use of scss for grids. Documentation can be found here:

  1. https://css-tricks.com/complete-guide-css-grid-layout/

8. Checklist

[] All targets in tsconfig.json files should be set to esnext [] No target should remain with old target compiler option versions

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Conventions for using annotations in all tests using Jupiter

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

docker

無料

Conventions for docker

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

Conventions for using in all JEE frameworks. These are common standards for CDI

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

Conventions for using Java

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

Conventions for using in all JVM languages

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

Conventions for using Kotlin

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

jesperancinha のスキルをすべて見る

このスキルの問題を報告する