ReSharper 2026.3 Help

TypeScript のコードインスペクション

TypeScript で、ReSharper 2026.3 は 141 エラー検出インスペクション (構文エラー、未解決シンボル、コンパイラーエラーなど。これらのインスペクションは設定や無効化ができません)と、55 独自コードインスペクションの 2 種類のコードインスペクションを提供します。独自コードインスペクションについては、どれでも 無効化したり、その 重要度レベルを変更できます。
These code inspections help you detect code issues at design time in all open files, and additionally they allow you to find code issues in specific scope.

構成可能な TypeScript インスペクションは、 カテゴリ別にグループ化されて以下にリストされています。

一般的なプラクティスとコードの改善 (4 インスペクション)

このカテゴリには、主にコードの可読性に影響する中程度の重要度の問題を検出するインスペクションがまとめられています。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

抽象クラスのコンストラクターは protected にできます
AbstractClassConstructorCanBeMadeProtected
resharper_abstract_class_constructor_can_be_made_protected_highlighting

ヒント

変数を導入すると型ガードを適用できます
IntroduceVariableToApplyGuard
resharper_introduce_variable_to_apply_guard_highlighting

ヒント

プライベートクラスフィールドは readonly にできます
PrivateVariableCanBeMadeReadonly
resharper_private_variable_can_be_made_readonly_highlighting

ヒント

文字列リテラルの使用により、特殊なオーバーロードを作成できます
CreateSpecializedOverload
resharper_create_specialized_overload_highlighting

ヒント

文法の問題 (4 インスペクション)

このカテゴリのインスペクションは、文字列リテラルやドキュメントコメント内の 文法上の問題を報告します。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

コメントの文法エラー
GrammarMistakeInComment
resharper_grammar_mistake_in_comment_highlighting

提案

マークアップ属性値の文法エラー
GrammarMistakeInMarkupAttribute
resharper_grammar_mistake_in_markup_attribute_highlighting

提案

マークアップテキストの文法エラー
GrammarMistakeInMarkupText
resharper_grammar_mistake_in_markup_text_highlighting

提案

文字列リテラルの文法エラー
GrammarMistakeInStringLiteral
resharper_grammar_mistake_in_string_literal_highlighting

無効

言語使用の機会 (9 インスペクション)

このカテゴリには、主に 提案の重要度レベルのコードインスペクションが含まれており、より高度な言語構造が使用できる場合に通知されます。 これらのインスペクションは、古い言語バージョンの構文を検出し、より新しい言語バージョンの機能を使うことを提案します。 ほとんどのサポート対象言語では、言語バージョン は自動的に検出されるか手動で設定できます。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

AMD モジュールは外部モジュールに変換可能
AmdExternalModule
resharper_amd_external_module_highlighting

提案

クラスエミュレーションをクラスに変換可能
Class
resharper_class_highlighting

提案

CommonJs モジュールは外部モジュールに変換できます
CommonJsExternalModule
resharper_common_js_external_module_highlighting

提案

関数式はラムダ式に変換可能
Lambda
resharper_lambda_highlighting

提案

即時呼び出し関数式を内部モジュールに変換可能
InternalModule
resharper_internal_module_highlighting

提案

親クラスの呼び出しは super コールに変換可能
SuperCall
resharper_super_call_highlighting

提案

関数によって割り当てられたメンバーは関数メンバーに変換できます
MethodSafeThis
resharper_method_safe_this_highlighting

提案

可能なオーバーロードは関数本体から推測できます
OverloadSignatureInferring
resharper_overload_signature_inferring_highlighting

ヒント

型アサーションの代わりに 'as' 演算子を使う
UseAsInsteadOfTypeCast
resharper_use_as_instead_of_type_cast_highlighting

ヒント

潜在的なコード品質問題 (15 インスペクション)

このカテゴリには、主に エラーまたは 警告レベルで、重大な問題(コードの臭い)を検出するインスペクションが含まれます。 このカテゴリには ローカライゼーション支援を保証するインスペクションも含まれます。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

おそらくシンボルはアクセスできないモジュールにあります
TsResolvedFromInaccessibleModule
resharper_ts_resolved_from_inaccessible_module_highlighting

エラー

require() 引数と同じ方法で 'amd-dependency' をチェックする
AmdDependencyPathProblem
resharper_amd_dependency_path_problem_highlighting

無効

重複する識別子
DuplicateIdentifierError
resharper_duplicate_identifier_error_highlighting

エラー

型注釈付き関数の空の戻り値
EmptyReturnValueForTypeAnnotatedFunction
resharper_empty_return_value_for_type_annotated_function_highlighting

警告

エクスポートされたエンティティはプライベートエンティティを使用します
DeclarationVisibilityError
resharper_declaration_visibility_error_highlighting

エラー

NoImplicitAny が設定されている場合の '暗黙の any' インスペクション
ImplicitAnyError
resharper_implicit_any_error_highlighting

エラー

より具体的なシグネチャーはあまり具体的でないものの後に続きます
MoreSpecificSignatureAfterLessSpecific
resharper_more_specific_signature_after_less_specific_highlighting

警告

オーバーロードはメインシグネチャーよりも具体的ではありません
LessSpecificOverloadThanMainSignature
resharper_less_specific_overload_than_main_signature_highlighting

警告

コンストラクター内で割り当てられたパラメータープロパティ値はクラスプロパティに割り当てられません
AssignedValueWontBeAssignedToCorrespondingField
resharper_assigned_value_wont_be_assigned_to_corresponding_field_highlighting

警告

疑わしい 'instanceof' チェック
SuspiciousInstanceofCheck
resharper_suspicious_instanceof_check_highlighting

警告

クラスメンバー内のローカル関数の文脈での疑わしい 'this' の使用
SuspiciousThisUsage
resharper_suspicious_this_usage_highlighting

警告

疑わしい 'typeof' チェック
SuspiciousTypeofCheck
resharper_suspicious_typeof_check_highlighting

警告

型パラメーターは外部スコープで宣言された型パラメーターを隠します
TypeParameterHidesTypeParamFromOuterScope
resharper_type_parameter_hides_type_param_from_outer_scope_highlighting

警告

静的イニシャライザーで未割り当てプロパティを使用
UseOfPossiblyUnassignedProperty
resharper_use_of_possibly_unassigned_property_highlighting

警告

宣言されていない変数の使用
TsNotResolved
resharper_ts_not_resolved_highlighting

エラー

コードの冗長性 (9 インスペクション)

このカテゴリのコードインスペクションは、可読性やスタイルに影響する冗長部分やデッドコードを探し、これらは安全に削除できます。 一部のコード冗長性は自動的に修正できず、それらのクイックフィックスは対話モードで実行され、ユーザー入力が必要です。 ただし、冗長な部分のほとんどは スコープ内の修正 または コードのクリーンアップ を使うことでユーザー操作なしで修正できます。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

ブール値同士の比較は値または否定値と同等です
RedundantComparisonWithBoolean
resharper_redundant_comparison_with_boolean_highlighting

警告

boolean の double 否定は冗長なものです
DoubleNegationOfBoolean
resharper_double_negation_of_boolean_highlighting

警告

重複する参照コメントは冗長なものです
DuplicateReferenceComment
resharper_duplicate_reference_comment_highlighting

警告

extends/implements の冗長な親タイプ指定
RedundantParentTypeDeclaration
resharper_redundant_parent_type_declaration_highlighting

警告

冗長な修飾子
RedundantQualifier
resharper_redundant_qualifier_highlighting

警告

参照コメントが循環依存を作成します
CyclicReferenceComment
resharper_cyclic_reference_comment_highlighting

無効

三項演算子は条件式で置き換えられます
TernaryCanBeReplacedByItsCondition
resharper_ternary_can_be_replaced_by_its_condition_highlighting

警告

型キャストは冗長なものです:式は常に指定された型です
RedundantTypeCast
resharper_redundant_type_cast_highlighting

警告

型キャストは冗長なものです:式は構造的に互換性のある型です
RedundantTypeCastStructural
resharper_redundant_type_cast_structural_highlighting

警告

シンボル宣言の冗長性 (6 インスペクション)

このカテゴリには、主に 警告重要度レベルで、空や未使用のシンボル宣言を検出するコードインスペクションが含まれます。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

パラメーターはメインシグネチャーの一部ではありません
ParameterDoesntMakeAnySense
resharper_parameter_doesnt_make_any_sense_highlighting

警告

パラメーターなしの冗長な空のコンストラクター
RedundantEmptyConstructor
resharper_redundant_empty_constructor_highlighting

警告

同じアイテムが異なる名前でインポートされています
SameImportsWithDifferentName
resharper_same_imports_with_different_name_highlighting

警告

型ガードによって変数の型が「never」型になります
TypeGuardProducesNeverType
resharper_type_guard_produces_never_type_highlighting

警告

型ガードは変数の型に何の影響も与えません
TypeGuardDoesntAffectAnything
resharper_type_guard_doesnt_affect_anything_highlighting

警告

未使用のローカルインポート
UnusedLocalImport
resharper_unused_local_import_highlighting

警告

スペルの問題 (3 インスペクション)

これらのインスペクションは 様々なコンテキストでタイプミスを検出します。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

コメントのタイプミス
CommentTypo
resharper_comment_typo_highlighting

提案

識別子のタイプミス
IdentifierTypo
resharper_identifier_typo_highlighting

提案

文字列リテラルのタイプミス
StringLiteralTypo
resharper_string_literal_typo_highlighting

提案

構文スタイル (5 インスペクション)

このカテゴリのインスペクションは コード構文スタイル への違反を検出します。 ほとんどのコードインスペクションとは異なり、これらのインスペクションは、 コード編集 | TypeScript | 構文スタイル ページの ReSharper オプション Alt+R、O に設定された対応するコードスタイルルールによって同じコード構造をコード問題として検出する場合も、しない場合もあります。 これらのインスペクションで検出された問題は、 コードのクリーンアップ を使用して修正することもできます。

インスペクション
ID
EditorConfig プロパティ

デフォルトの重大度

要素に暗黙の「any」型があります
ImplicitAnyTypeWarning
resharper_implicit_any_type_warning_highlighting

警告

'require' 内の非準拠パススタイル
WrongRequireRelativePath
resharper_wrong_require_relative_path_highlighting

ヒント

非準拠の「public」修飾子またはその未指定
WrongPublicModifierSpecification
resharper_wrong_public_modifier_specification_highlighting

ヒント

変数の型は明示的に指定可能
SpecifyVariableTypeExplicitly
resharper_specify_variable_type_explicitly_highlighting

ヒント

変数型は割り当てられた値の型からコンテキストで決定されるため、型指定は冗長なものです
RedundantVariableTypeSpecification
resharper_redundant_variable_type_specification_highlighting

ヒント

2026 年 11 月 6 日