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
* @import { TSESTree } from "@typescript-eslint/utils"
7
+
*/
8
+
void0;
9
+
10
+
module.exports=createRule({
11
+
name: "no-array-mutating-method-expressions",
12
+
meta: {
13
+
docs: {
14
+
description: ``,
15
+
},
16
+
messages: {
17
+
noSideEffectUse: `This call to {{method}} appears to be unintentional as it appears in an expression position. Sort the array in a separate statement or explicitly copy the array with slice.`,
18
+
noSideEffectUseToMethod: `This call to {{method}} appears to be unintentional as it appears in an expression position. Sort the array in a separate statement or explicitly copy and slice the array with slice/{{toMethod}}.`,
0 commit comments