Place method decorator on the same line

EditorConfig key: js-place-method-decorator-on-the-same-line

Place method decorator on the same line

js-place-method-decorator-on-the-same-line

If true, method decorators stay on the same line as the method signature.

Default value:

false

Possible values:

  • true
  • false

Examples

true
@logged foo() {}
false
@logged
foo() {}