@@ -12,6 +12,7 @@ describe("convertOnlyArrowFunctions", () => {
12
12
plugins : [ "eslint-plugin-prefer-arrow" ] ,
13
13
rules : [
14
14
{
15
+ ruleArguments : [ { } ] ,
15
16
ruleName : "prefer-arrow/prefer-arrow-functions" ,
16
17
} ,
17
18
] ,
@@ -27,7 +28,11 @@ describe("convertOnlyArrowFunctions", () => {
27
28
plugins : [ "eslint-plugin-prefer-arrow" ] ,
28
29
rules : [
29
30
{
30
- notices : [ "ESLint does not support allowing standalone function declarations." ] ,
31
+ ruleArguments : [
32
+ {
33
+ allowStandaloneDeclarations : true ,
34
+ } ,
35
+ ] ,
31
36
ruleName : "prefer-arrow/prefer-arrow-functions" ,
32
37
} ,
33
38
] ,
@@ -44,8 +49,9 @@ describe("convertOnlyArrowFunctions", () => {
44
49
rules : [
45
50
{
46
51
notices : [
47
- "ESLint does not support allowing named functions defined with the function keyword." ,
52
+ "ESLint (eslint-plugin-prefer-arrow plugin) does not support allowing named functions defined with the function keyword." ,
48
53
] ,
54
+ ruleArguments : [ { } ] ,
49
55
ruleName : "prefer-arrow/prefer-arrow-functions" ,
50
56
} ,
51
57
] ,
@@ -62,8 +68,12 @@ describe("convertOnlyArrowFunctions", () => {
62
68
rules : [
63
69
{
64
70
notices : [
65
- "ESLint does not support allowing standalone function declarations." ,
66
- "ESLint does not support allowing named functions defined with the function keyword." ,
71
+ "ESLint (eslint-plugin-prefer-arrow plugin) does not support allowing named functions defined with the function keyword." ,
72
+ ] ,
73
+ ruleArguments : [
74
+ {
75
+ allowStandaloneDeclarations : true ,
76
+ } ,
67
77
] ,
68
78
ruleName : "prefer-arrow/prefer-arrow-functions" ,
69
79
} ,
0 commit comments