Function name should use camelCase or PascalCase

このページは日本語には対応しておりません。随時翻訳に取り組んでいます。翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。

Metadata

ID: typescript-code-style/function-naming

Language: TypeScript

Severity: Notice

Category: Code Style

Description

Ensure that the function uses camelCase or PascalCase in case it is an Object. Generator functions should always be camelCase.

Non-Compliant Code Examples

function My_Class() {}
function get_value() {}
function* GetValue() {}
function *get_value() {}

function foo2(){

}

Compliant Code Examples

function MyClass() {}
function getValue() {}
function* getValue() {}
function *getValue() {}
https://static.datadoghq.com/static/images/logos/github_avatar.svg https://static.datadoghq.com/static/images/logos/vscode_avatar.svg jetbrains

Seamless integrations. Try Datadog Code Analysis