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.
array-element-newline
1 parent f2c7ba6 commit a53e59eCopy full SHA for a53e59e
docs/rules/array-element-newline.md
@@ -42,7 +42,12 @@ Examples of **incorrect** code for this rule with the default `"always"` option:
42
43
var c = [1, 2];
44
var d = [1, 2, 3];
45
-var e = [
+var e = [1, 2, 3
46
+];
47
+var f = [
48
+ 1, 2, 3
49
50
+var g = [
51
function foo() {
52
dosomething();
53
}, function bar() {
@@ -63,6 +68,11 @@ var c = [1,
63
68
var d = [1,
64
69
2,
65
70
3];
71
+var d = [
72
+ 1,
73
+ 2,
74
+ 3
75
66
76
var e = [
67
77
78
@@ -109,6 +119,11 @@ var b = [1];
109
119
110
120
111
121
122
+ 1, 2, 3];
123
124
125
126
112
127
113
128
114
129
0 commit comments