TS.SUGGESTION.PNC : Prefer Nullish Coalescing (TS-ESLint)

This TypeScript warning class corresponds to a typescript-eslint rule. The CodeSonar analysis results may include warnings of this class if your CodeSonar project includes TypeScript components.

要旨

This TypeScript warning class corresponds to a typescript-eslint rule: "prefer-nullish-coalescing".

For full rule details, see the typescript-eslint website: prefer-nullish-coalescing.

プロパティ

クラス名 Prefer Nullish Coalescing (TS-ESLint)
日本語クラス名 Prefer Nullish Coalescing (TS-ESLint)
クラス分類 スタイル (style)
ニーモニック TS.SUGGESTION.PNC
カテゴリー
typescript-eslint typescript-eslint:prefer-nullish-coalescing prefer-nullish-coalescing
対応言語 TypeScript で利用可能です。
有効/無効設定 Checking for this warning class is performed by the third party ESLint analyzer, with the results imported into the CodeSonar project.

To enable or disable checking, you will need to adjust your adjust your ESLint configuration.

If the checker produces one or more results corresponding to this warning class, they will be submitted to the hub by default. To disable submission, add the following WARNING_FILTER rule to the project configuration file.

WARNING_FILTER += discard class="Prefer Nullish Coalescing (TS-ESLint)"

関連のある設定ファイルパラメータ

設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。