You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-expression-statements.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ This rule accepts an options object of the following type:
58
58
59
59
```ts
60
60
typeOptions= {
61
-
ignorePattern?:string[] |string;
61
+
ignoreCodePattern?:string[] |string;
62
62
ignoreVoid?:boolean;
63
63
ignoreSelfReturning?:boolean;
64
64
};
@@ -83,7 +83,7 @@ Like `ignoreVoid` but instead does not flag function calls that always only retu
83
83
84
84
Limitation: The function declaration must explicitly use `return this`; equivalents (such as assign this to a variable first, that is then returned) won't be considered valid.
85
85
86
-
### `ignorePattern`
86
+
### `ignoreCodePattern`
87
87
88
88
This option takes a RegExp string or an array of RegExp strings.
89
-
It allows for the ability to ignore violations based on the line(s) of code.
89
+
It allows for the ability to ignore violations based on the code itself.
0 commit comments