* `"beforeStatementContinuationChars": "always"` requires semicolons at the end of statements if the next line starts with `[`, `(`, `/`, `+`, or `-`.
* `"beforeStatementContinuationChars": "never"` disallows semicolons as the end of statements if it doesn't make ASI hazard even if the next line starts with `[`, `(`, `/`, `+`, or `-`.
+**Note:** `beforeStatementContinuationChars` does not apply to class fields because class fields are not statements.
+
### always
Examples of **incorrect** code for this rule with the default `"always"` option:
object.method = function() {
// ...
}
+
+class Foo {
+ bar = 1
+}
```
Examples of **correct** code for this rule with the default `"always"` option:
object.method = function() {
// ...
};
+
+class Foo {
+ bar = 1;
+}
```
### never
object.method = function() {
// ...
};
+
+class Foo {
+ bar = 1;
+}
```
Examples of **correct** code for this rule with the `"never"` option:
;(function() {
// ...
})()
+
+class Foo {
+ bar = 1
+}
```
#### omitLastInOneLineBlock
if (foo) { bar() }
if (foo) { bar(); baz() }
+
+function f() { bar(); baz() }
+
+class C {
+ foo() { bar(); baz() }
+
+ static { bar(); baz() }
+}
```
#### beforeStatementContinuationChars