We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8930942 commit ea72e6dCopy full SHA for ea72e6d
docs/rules/no-array-reverse.md
@@ -31,9 +31,8 @@ Default: `true`
31
This rule allow `array.reverse()` as an expression statement by default.
32
Pass `allowExpressionStatement: false` to forbid `Array#reverse()` even it's an expression statement.
33
34
-#### Fail
35
-
36
```js
37
-// eslint unicorn/no-array-reverse: ["error", {"allowExpressionStatement": true}]
+// eslint unicorn/no-array-reverse: ["error", {"allowExpressionStatement": false}]
+// ❌
38
array.reverse();
39
```
0 commit comments